Closed Bug 754662 Opened 12 years ago Closed 2 years ago

flex attribute does not work if the hidden attribute is dynamically toggled for vbox.

Categories

(Core :: Web Painting, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: shaarang.tyagi, Unassigned)

Details

Attachments

(1 file)

638 bytes, application/vnd.mozilla.xul+xml
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19

Steps to reproduce:

The XUL code was:
         
        <hbox id="top-container">
	<vbox id="first-box" flex="1" >
	<hbox id="topbar-box" height="37px"  pack="end" flex="1" >
		<image id="topbar-box-img"> 
		</image> 
        </hbox>
        </vbox>
	<vbox id="second-box" height="83px" width="71px">
        <image id="image-second"></image>
        </vbox>
        </hbox>

And from the javascript this was done:

document.getElementById("top-container").hidden = true;
and then on some button click action:
document.getElementById("top-container").hidden = false;


Actual results:

The output becomes messed up ( the flex does not simply work). 


Expected results:

The flex should have placed (stretched) the objects accordingly.
Assignee: nobody → shaarang.tyagi
I just tried this, and it works just fine.  Can you attach a complete testcase that actually shows the problem, please?
Component: Layout: View Rendering → Layout: Web Painting
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

The bug assignee didn't login in Bugzilla in the last 7 months.
:miko, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: shaarang.tyagi → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(mikokm)

XUL.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(mikokm)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: