The width isn't known until the image is loaded
Attach code to the 'beforeAppear' event, when the widget is rendered.
asbk wrote:
>
> Hello,
> Am very young to QooxDoo and I need some information
> about finding out the width of an image.
>
> for eg, lets say I have defined a variable imagePlot
> as a basic image.
> var imagePlot = new qx.ui.basic.Image("MyPic.PNG");
>
> After this, If I say
> 'alert(imagePlot.getWidthValue())' or
> 'alert(imagePlot.getHeightValue())', it always returns
> 0, whereby am expecting the width and height of the
> image.
> imagePlot.getWidth() and imagePlot.getHeight() returns
> 'auto'. what does that mean?
>
> Is there any methods defined to compute height and
> width of an image? Can anybody clarify me?
>
> Regards
> Balaji
>
>
>
> ____________________________________________________________________________________
> We won't tell. Get more on shows you hate to love
> (and love to hate): Yahoo! TV's Guilty Pleasures list.
> http://tv.yahoo.com/collections/265
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
View this message in context:
http://www.nabble.com/Image-Width---Height--tf3714817.html#a10391551
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel