Hi Sanne,
Thanks for your answer.
I will report it as a bug to the qooxdoo team.
By the way, my idea to work with flex to create a barcode isn't
the right way. I work now with pixels and the correct calculation
of the best scale for a flex layout.
Kind regards,
Daniel
Am 13.01.2015 um 10:03 schrieb Sanne Peters:
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
------------------------------------------------------------------------------
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
|
------------------------------------------------------------------------------
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