#1250 closed defect (fixed)
Node collapses in narrow IE window
Reported by: | ornus | Owned by: | ilia |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.3 |
Keywords: | tree | Cc: | |
Blocked By: | Blocking: |
Description
Narrow IE window causes node graphics and text to collapse. Icon will jump under the +/- sign, and text will jump under the icon. Instead the node should always remain in a single line (like it does in Mozilla).
Attachments (4)
Change History (9)
Changed 14 years ago by
Attachment: | treeV3_12.patch added |
---|
comment:1 Changed 14 years ago by
This is voodoo magic:) The patch uses IE CSS expression to dynamically change tree width dynamically to make sure all content fits inside. All content fits - no drops or collapses. This can add some overhead with expand all, but it shouldn't be too significant.
The table is required because its width is collapse to the width of it's child nodes. Div width by default is 100%. Table width is minimum needed to show children. This makes actually makes width of the parent div dynamic. Without it div width is calculated once when page is opened (by default it is always body width). After page is loaded div width would remain constant, since child nodes do not cause width change of the parent divs.
It's kind of hard to explain. You should try to remove div and see effect for yourself. Try to resize the browser window and see what happens.
This expression is IE only. If you are not willing to change tree layout for this maybe create an extension that will wrap the tree in IE to ensure nodes do not collapse?
comment:2 Changed 14 years ago by
Status: | new → assigned |
---|
Changed 14 years ago by
Attachment: | treeV3_12.3.patch added |
---|
Extension to disable wrap and minor fixes/clean up.
comment:4 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Example fix for the problem.