If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

xul:box doesn't flex if -moz_box-align:center; style is applied to parent row

RESOLVED INVALID

Status

()

Core
XUL
RESOLVED INVALID
13 years ago
9 years ago

People

(Reporter: Lukas Ramach, Unassigned)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.0) 

If i place a xulk:box inside a row and assign -moz-box-align:center; or
-moz-box-pack:center; to the style attribute of the row, the box doesn't flex
with the row.
IMHO the box should flex as without these styles!

See additional Information for a sample dialog.



Reproducible: Always

Steps to Reproduce:
1.launch the attached dialog in your chrome
2.resize the dialog
3.

Actual Results:  
the box where the parent row has the style -moz-box-align:center; doesn't flex

Expected Results:  
the box should flex

<dialog xmlns:rdf      = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns          =
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        buttons        = "accept"
        ondialogaccept = "return true"
        minwidth       = "450px"
        minheight      = "300px"
        maxheight      = "700px"
        onload         = "sizeToContent ();"
        orient         = "vertical">
  
  <grid flex =  "1">
    <columns flex = "1">
      <column flex = "1" />
    </columns>
    <rows flex = "1"
          debug = "true">
      <!--working box-->
      <row flex  = "1">
        <box />
      </row>
      <!--non flexing box #1-->
      <row flex  = "1"
           style = "-moz-box-pack:center;">
           <box />
      </row>
      <!--non flexing box #2-->
      <row flex  = "1"
           style = "-moz-box-algin:center;">
        <box />
      </row>
    </rows>
  </grid>
</dialog>
Neil, I assume the behavior is actually correct?

Comment 2

13 years ago
What I see is that that the box on the row with -moz-box-align: center; does not
flex vertically, but this is the expected behaviour of align="center".
Invalid, per Neil's comment.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → INVALID

Updated

9 years ago
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.