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)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jwkbugzilla, Unassigned)

References

Details

Attachments

(1 file)

2.51 KB, application/vnd.mozilla.xul+xml
Details
Attached file Testcase
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.
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.
Blocks: tomtom
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.

Attachment

General

Created:
Updated:
Size: