开发者

GWT Images Set Size

I have some images I am swapping out in a image widget by setUrl.The problem is I开发者_Python百科 start with smaller images then when I load a larger image into the image widget it remains the same size as the smaller image.

Is there any way I can make the widget auto adjust it's width and height to the image I am loading into it.

Right now I am keeping the dimesions in an array and adjusting size accordingly.

Thanks


Have you tried setting the new images by calling setResource(ImageResource)? This works for me.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜