3.2.0

style to size conversion

I believe there is a bug in the conversion.

If I set the size of a column using style using #myGrid .aw-column-0 for example and later call getColumnSize(0) then:
. when setting 130px I get 138px
. when setting 10em I get 118px

For quirk, it's diferent :
. when setting 130px I get 130px
. when setting 10em I get 130px

In both case I set the font to 13px.
Philippe Marzin
December 17,
This is not a bug. If you are using the DOCTYPE which triggers 'standards-compliant' box model then the element size = CSS size + border + padding. All AW controls/templates have 8px horizontal and 4px vertical border+padding, so 130px + 8px = 138px.
Alex (ActiveWidgets)
December 18,
ok. I am only trying to understand what it does and I would rather read than test and try.

Let's say I want a box of 130px width and let's say I am using strict doc type.

If am using the method setColumnWidth() I pass 130 as the argument but if I am using .aw-column-xx I have to use 122px ? and convert everything in em.
Philippe Marzin
December 18,

This topic is archived.

See also:


Back to support forum