Closed Bug 51894 Opened 25 years ago Closed 25 years ago

HTML tag in XUL does not wrap if initially set to display:none

Categories

(Core :: XUL, defect, P3)

All
Mac System 8.5
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: andreww, Assigned: eric)

Details

Attachments

(2 files)

I've included two example files. One has the html widget set by default to display:block, and the other to display:none. Each has two buttons which allow you to toggle the display setting. In the one which has the display:none set by default, when you set it to display:block, the text flows off the screen to the right - not wrapping. In the one which has the display:block set by default, it wraps correctly and will continue to wrap even if you toggle the display state. This is a distillation of a problem in AIM where we have a panel set initally to display:none, and contains some text that must wrap. Since it does not wrap, buttons which the user needs to get at are offscreen and makes the app "unusable" after that.
Nominating beta 3 as this will effect anyone trying to hide and show wrapped text via CSS. (Which NAIM does often)
Keywords: nsbeta3
looking at the test case further, it looks like the initial state of the html widget doesnt matter. As soon as I set it to display:block from any other setting, even if it was _already_ display:block - it stops wrapping.
looks like this is fixed now..
fixed
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: