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.