Closed
Bug 402912
Opened 17 years ago
Closed 17 years ago
"###!!! ASSERTION: bad pref, min, max size" with XUL equalsize, flex
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: neil)
References
Details
(Keywords: assertion, testcase)
Attachments
(2 files)
298 bytes,
application/xhtml+xml
|
Details | |
896 bytes,
patch
|
enndeakin
:
review+
roc
:
superreview+
mtschrep
:
approval1.9+
|
Details | Diff | Splinter Review |
Loading the testcase triggers: ###!!! ASSERTION: bad pref, min, max size: '(boxSizes->min <= boxSizes->pref && boxSizes->pref <= boxSizes->max)', file /Users/jruderman/trunk/mozilla/layout/xul/base/src/nsSprocketLayout.cpp, line 1184
Assignee | ||
Updated•17 years ago
|
Whiteboard: DUPEME
Reporter | ||
Comment 1•17 years ago
|
||
Why "DUPEME"? I searched Bugzilla for the assertion before filing the bug, and the only mentions were in the fixed bug 382899 and invalid bug 83368.
Assignee | ||
Comment 2•17 years ago
|
||
Because I didn't remember fixing bug 382899. D'oh!
Reporter | ||
Updated•17 years ago
|
Whiteboard: DUPEME
Assignee | ||
Comment 3•17 years ago
|
||
OK, so the problem appears to be here: if (childActualWidth > childLayoutWidth) { aChildComputedSize->size = childActualWidth; aChildBoxSize->min = childActualWidth; if (aChildBoxSize->pref < childActualWidth) aChildBoxSize->pref = childActualWidth; Note that this can increase the minimum width, and it will of course increase the preferred width to match, but it fails to increase the maximum width.
Assignee | ||
Comment 4•17 years ago
|
||
This fixes the assertion and seems to be the correct approach.
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #288734 -
Flags: superreview?(roc)
Attachment #288734 -
Flags: review?(enndeakin)
Attachment #288734 -
Flags: superreview?(roc) → superreview+
Updated•17 years ago
|
Attachment #288734 -
Flags: review?(enndeakin) → review+
Assignee | ||
Updated•17 years ago
|
Attachment #288734 -
Flags: approval1.9?
Updated•17 years ago
|
Attachment #288734 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 5•17 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•