faqts : Computers : Programming : Languages : JavaScript : Document

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 6 people (33%) answered Yes
Recently 2 of 6 people (33%) answered Yes

Entry

How can I force a document reflow in NN6 after using 'display:none;' ?

Jun 6th, 2002 11:40
Jason Horsley,


I am using Netscape 6.01 and am having trouble with a dynamic tree menu.
In IE6 the folders collapse and expand making the whole page reflow so 
that the text under the tree always butts up against the last visible 
element of the tree.
In NN6 the folders where hiding and showing but the collapse and expand 
functionality was inconsistant.  Sometimes the folder contents would 
dissapear but the next folder down would not move up, but sometimes it 
would work exactly like IE6.
I have fixed the problem with the tree reflowing properly by putting 
two dummy <tr> elements at the top of the tables which I flip from 
display:none; to display:; everytime something else switches display 
properties. 
It seems that Netscape needs a change in each table in the structure so 
that it knows to do a reflow for each table.