Closed Bug 281385 Opened 19 years ago Closed 19 years ago

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

Categories

(Core :: XUL, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: ramach, Unassigned)

Details

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?
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
Closed: 19 years ago
Resolution: --- → INVALID
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.