- From: L. David Baron <dbaron@dbaron.org>
- Date: Sun, 9 May 2010 13:58:18 -0700
- To: Andrew Fedoniouk <news@terrainformatica.com>
- Cc: robert@ocallahan.org, "Tab Atkins Jr." <jackalmage@gmail.com>, Adam Del Vecchio <adam.delvecchio@go-techo.com>, www-style@w3.org
On Sunday 2010-05-09 12:48 -0700, Andrew Fedoniouk wrote: > I think that algorithm used in Gecko has an error or > if it is correct (that mysterious "additive" to something?) > then it is highly non-intuitive. Flex is an addition to the preferred width, not a replacement for it. Having it this way is essential for building complex widgets using flex. For example, suppose you have a widget like the URL bar in Firefox where one part in the middle is flexible (the part where you enter the text) but there are a bunch of other parts (favicon, bookmark and SSL indicators). If you want to use that widget in something larger where it is, itself, flexible (but say, not the only flexible thing), you still don't want it to end up smaller than the sum of the minimum width of its flexible part and the widths of its nonflexible parts. So you don't want to assign it a width; you want to say that it has a width to start off, and then it flexes to fill additional space (because that flex really ends up being assigned to the one flexible piece inside it). -David -- L. David Baron http://dbaron.org/ Mozilla Corporation http://www.mozilla.com/
Received on Sunday, 9 May 2010 20:58:52 UTC