Possible setSize() Bug in AW 2.5.2 & FF2?
It seems that setSize() behaviour has changed in the new version of AW for FF2.
The following code:
var but = new AW.UI.Button; but.setSize(10,10); alert( "width=" + but.getStyle("width") +", height=" + but.getStyle("height") );
in AW 2.5.1 & IE6/FF2, produces:
AW 2.5.2/IE6 also produces:
but AW 2.5.2/FF2 results in:
Is this a bug, or should I be reading the width in a different manner?
(It is odd that there are 'setSize()/setPosition()' methods, but no complementary 'getters'. Or am I missing something?)
This behavior is activated only when 'text' class value is 'expand' (which is default value for AW.UI.Button). You can switch it off with
The code is located in /source/lib/ui/imagetext.js, line 118
The information is much appreciated! :)
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.