Closed Bug 9442 Opened 26 years ago Closed 26 years ago

auto margins in content cause XUL not to display

Categories

(Core :: XUL, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: dbaron, Assigned: eric)

Details

Attachments

(4 files)

In the two testcases I will attach, the only difference is that the html:p element in the second has margin-top: auto. In the Linux build of 1999-07-07 (opt, mozilla.org), this causes the entire document to be blank. In the Linux build of 1999-07-01 (opt, mozilla.org), it causes the height of the paragraph element to expand to 100% (or maybe more). This happened for auto margins on any side, and it caused margins on a table to be blank. I think the two testcases should end up displaying the same way.
Assignee: trudelle → hyatt
Target Milestone: M9
reassigning to hyatt as p3 for m9
Assignee: hyatt → evaughan
Delegating to someone else just to balance the bug load.
I'm seeing similar problems with align="center" on a table, which maps to auto margins. What you need to do, is: * for sizing, treat the auto margins as zero margins * if, by some miracle, the box is bigger than the table, then use the auto margins to align the table (or p, or whatever) I'm also seeing one case where it's only causing misalignment, not complete disappearance [[ Note to self: main panel of sched. demo, with align="center" on top and bottom tables ]]. The test cases are complicated, but I could give them to you if you want [[ Note to self: schedule demo, align="center" everywhere appropriate. divActive(2) shows nothing ]]
Target Milestone: M9 → M10
Still have to look a this.
Status: NEW → ASSIGNED
Target Milestone: M10 → M11
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
The 2 posted examples work. I just assume than automargins are always 0. Tables should work as well.
QA Contact: ckritzer → dbaron
Assigning to originator per new organizational structure.
Status: RESOLVED → REOPENED
I'm reopening this because there's a bug in your fix for the original bug here. (Is it better to file a separate bug in such a case, or not??) Currently if *any* of the four margins is auto, then they're all becoming zero. Making those that are auto zero makes sense, but not making others zero. I'll attach a pair of test cases that should have a 5em margin on the box on all but the right side (where the margin should depend on the window size). The first has "margin: 5em", and works correctly. The second has "margin: 5em; margin-right: auto", and doesn't. (However, I think auto side margins on an element with a given width in a vertically aligned box that is given a fixed width should be properly computed. Perhaps I'll file another RFE bug on that. This would make <table align="center"> work (if tables work OK otherwise).)
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → FIXED
I understand that it would be nice to have auto margin in xul but unfortunately all those calculation are done in the html reflow system. It would be a great deal of work so make this happen and would greatly complexify boxes. Its a good idea but is definitely not something that will happen before beta. So I'm going to close this bug as fixed because xul does display. If you feel strongly about this can you please post another bug that is a feature request that xul boxes should support auto margins. Thanks
QA Contact: dbaron → ckritzer
Changing QA Contact back to ckritzer@netscape.com. Dave, any thoughts on evaughn's comments? I'll close this bug out by next Monday if I hear no feedback. Thanks!
BULK MOVE: Changing component from XUL to XP Toolkit/Widgets: XUL. XUL component will be deleted.
Component: XUL → XP Toolkit/Widgets: XUL
Massive QA Contact update.
QA Contact: ckritzer → jrgm
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

Created:
Updated:
Size: