Re: how do you load one image before drawing it

2009-08-14 Thread Sean
Awesome, glad you got your stuff working. I was banging my head against the wall to figure out what to do with image sizes and such till I realized that all the pics I have are from my camera and are the same size. So i def. cheat with image sizes. I have a bunch of ways in my head to deal with

how do you load one image before drawing it

2009-08-13 Thread lucasz
Hello GWT people, I am trying to write an image gallery slide show feature inside of a PopupPanel, but image loading is really messing up my presentation. The problem is that when I load the next image, my popup shrinks until the image is loaded. And even worse, if I change between a portrait

Re: how do you load one image before drawing it

2009-08-13 Thread Sean
I did a very similar thing, but my pop up doesn't redraw. I just do a new Image.setUrl() and I don't get that shrink/grow movement. I believe (I don't have source code with me) I extended a dialog panel (so I could add my own arrow and close controls) with an Image in it and just always call

Re: how do you load one image before drawing it

2009-08-13 Thread lucasz
Thanks, that was exactly what I needed. I spent a while banging my head on that one and the answer was so simple. I was actually creating new image objects every time and then removing and re-adding them to the popup panel. I switched over to the seturl and precached the image before and after