Hi,
I'm seeing something that I don't understand.
If I create an configure an ImgButton like this:
, then it works as expected.
However, if I use resizeTo (instead of the setWidth and setHeight calls), like this:
, then the button is not sized as expected.
(It's sized as 440x210, according to both the Developer Console and Firebug.)
What could be the reason of this?
Is not calling resizeTo(w, h) equivivalent to subsequently calling setWidth(w) and setHeight(h)?
Thank you for you help:
Csillag
ps. GWT 2.4, SmartGWT 2.5, FF 6
I'm seeing something that I don't understand.
If I create an configure an ImgButton like this:
Code:
ImgButton maxButton = new ImgButton() {{ setWidth(15); setHeight(15); }};
However, if I use resizeTo (instead of the setWidth and setHeight calls), like this:
Code:
ImgButton maxButton = new ImgButton() {{ resizeTo(15, 15); }};
(It's sized as 440x210, according to both the Developer Console and Firebug.)
What could be the reason of this?
Is not calling resizeTo(w, h) equivivalent to subsequently calling setWidth(w) and setHeight(h)?
Thank you for you help:
Csillag
ps. GWT 2.4, SmartGWT 2.5, FF 6
Comment