PDA

View Full Version : What event to listen?



misterjpa
7 May 2013, 6:20 AM
Hi,

First of all, please, forgive my english.

I have a window in which i'm using a XTEMPLATE to dynamically create the body (which is just an image coming from the server).
I am also using a pagingToolbar to turn the page of a store containing the images.

My problem is that i want to resize the body of my window to the exact dimensions of my images when i turn the pages of my store.

I try to do it on the load listener of the store but the image isn't already display so the <img> containing it have width = 0 and height = 0.

If i press next then previous, it's ok because the browser get the image in cache so it display it faster.

So my question is : Do you know an event that can be catch by extJS after the image is loaded?

Thanks in advance.
If you have questions i'll be happy to answer it. =)

MisterJpa

misterjpa
7 May 2013, 6:28 AM
I'm sorry, i think i didn't post into the right forum. Can someone move my post to the ExtJS forum ?

Thanks

Colin Alworth
7 May 2013, 10:08 AM
Which version of Ext JS?

misterjpa
8 May 2013, 12:28 PM
3.1.1
Thanks!