Hi Daniel,
You are right, but it seems that perhaps the flex calculation by qooxdoo
flex layout makes some errors.
According to the specs of the css flex layout:
If a container, of 400px width, flexes its 10 children, by a degree of
1, each child would be 40px in width.
If that same container flexes 9 children by a degree of 1 and 1 child by
a degree of 2,
the last would be 72,72 px wide and all the others be 36.36px wide.
I even tweaked your example to show that the flex calculation is off:
http://tinyurl.com/nbk26dr
Also notice the white spaces between the boxes. It should not be there.
With that in mind, I do not think you are doing something wrong, so I
would file a bug with Qooxdoo.
kind regards,
Sanne
On 12/01/15 16:16, Daniel Lenggenhager wrote:
Hi all,
When I make a container (width: 400px) and put 10 widgets with a flex
of 1, each widget has a computed width of 40px. In my opinion, perfect :-D
Now... I remove a widget and set another to flex of 2... the sum of
flex is still 10. But the computed widths change to 41px or 42px and
the last one is 71px.
How get the width of each item calculated? - Did I miss something?
I want to create a flexible barcode widget and I need exact widths.
Playground example: *http://tinyurl.com/mx52x45
*Thanks for the help.
Daniel
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
vanity: www.gigenet.com
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
met vriendelijke groeten,
Sanne Peters
*Interactie ontwerper*
Realtime Solutions B.V.
Torenallee 20
5617 BC Eindhoven
*Tel:* 040 4022 726 | *E-mail:* sa...@realtimesolutions.nl
<mailto:sa...@realtimesolutions.nl> | *Website:*
http://www.realtimesolutions.nl
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel