Closed
Bug 392296
Opened 17 years ago
Closed 17 years ago
Wrong processing of column flex in grids with multiline text
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jwkbugzilla, Unassigned)
References
Details
Attachments
(1 file)
2.51 KB,
application/vnd.mozilla.xul+xml
|
Details |
If a grid only has "regular" text fields without line wrapping, the flex attribute on columns is processed correctly - the higher the flex attribute, the more space we get for this column. However, if we put multiline text into the grid we see reversed behavior - columns with higher flex attribute get *less* space. See attached testcase.
Reporter | ||
Comment 1•17 years ago
|
||
Forgot to mention: tested in Firefox 2.0.0.6 and Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a8pre) Gecko/2007081320 Minefield/3.0a8pre, both show the same behavior.
Comment 2•17 years ago
|
||
This is correct flexbox behaviour and not relevant to grids. On my system, each flexible description has a minimum width of 25px and a preferred width of 725px. Thus, when you try to fit three of them into a window whose inner width is 785px there isn't enough room to lay them all out horizontally. The flexbox behaviour is therefore to shrink the the first description by 230px, the second by 460 and the third by 690px in a 1:2:3 ratio; their widths are now 495px, 265px and 25px, total 785px. Had the sample text used longer words the third box could not have flexed as much as it desired. To get the behaviour I think you want, try width="1" on wrappable descriptions.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•