Re: [qooxdoo-devel] Image - get size

2011-01-04 Thread Tristan Koch
Hi Petr, Confirmed, but only when loaded without Firebug. I assume the UI blocks because I'm calling console.log, which is not available in plain Firefox. You could fix it by replacing console.log with this.debug. Tristan Am 04.01.2011 um 17:25 schrieb Petr Kobalíček: > BTW: The example in pl

Re: [qooxdoo-devel] Image - get size

2011-01-04 Thread thron7
For managed images, you can use qx.util.ResourceManager#getImageHeight/getImageWidth. This information is available whether the image has been loaded or not. T. > Hi Tristan, > > thanks for reply, I meant original dimension of the image. I don't > know if the "appear" is the right event. I'd lik

Re: [qooxdoo-devel] Image - get size

2011-01-04 Thread Petr Kobalíček
Hi Tristan, thanks for reply, I meant original dimension of the image. I don't know if the "appear" is the right event. I'd like to get the size when image is loaded so I'd like to stay with "loaded" event. The problem is that the sample you wrote doesn't work for this case, because "loaded" event

Re: [qooxdoo-devel] Image - get size

2011-01-03 Thread Tristan Koch
Hi Petr, do you mean the actual (original) size of the image or the size of the image as in your layout? Did you give qx.ui.core.LayoutItem#getBounds or qx.ui.core.Widget#getInnerSize a try? http://tinyurl.com/2vzyv4o Tristan Am 03.01.2011 um 22:23 schrieb Petr Kobalíček: > I dig deeped int

Re: [qooxdoo-devel] Image - get size

2011-01-03 Thread Petr Kobalíček
Hi, Thanks for response! It's long time I was active in this mailing list, but it's time to finish our product so I'm getting to be active again :) But I'm unable to do contributions at this time, my code is very connected with our product and I'm not using qooxdoo in recommended way - I broke the

Re: [qooxdoo-devel] Image - get size

2011-01-03 Thread Stefan Volbers
Hi Petr, long time no see :-) Just a blind guess - I could imagine that the image object doesn't get width/height properties updated until it is rendered - maybe you should try to add an "appear" listener!? A qooxdoo based gallery would be great - I always liked the idea, but I have time to r

Re: [qooxdoo-devel] Image - get size

2011-01-03 Thread Stefan Volbers
On 03.01.2011 18:41, Stefan Volbers wrote: > A qooxdoo based gallery would be great - I always liked the idea, but I > have time to realise such for myself... ... sadly I DON'T have time :-( Greetings Stefan -- Learn ho

[qooxdoo-devel] Image - get size

2011-01-03 Thread Petr Kobalíček
Hello, I have this code: control = new qx.ui.basic.Image(this.getIcon()); control.addListener("loaded", this._onLoaded, this); control.addListener("loadingFailed", this._onLoadingFailed, this); How can I access image width / height after image is loaded (in "loaded" event handler)? I trie