:: Forum >>

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
Monday, December 17, 2007
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)
Tuesday, December 18, 2007
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
Tuesday, December 18, 2007

This topic is archived.

Back to support forum

Forum search