instances.
You know the resolution of the images you use as background. Try
calling setPixelSize(...) on each Image instance with the image
resolution values. This way you can make sure the Image has the
correct size, thus the superior cell and finally the overall Grid as
well.
I develop applications with more than 100 Panel instances (not to
mention all other Widgets and custom Widgets) and there is no
noticeable resource problem. I think GWT does a pretty good job there.
In my example I never call setPixelSize(...) on the Grid and it
apparently is not of height 0. Why should it be?
Additionally as you saw in your code, calling it led to strange
dimension problems/overlapping, ...
On 28 Jun., 18:28, Magnus <alpineblas...@googlemail.com> wrote:
> BTW: I must set the grids pixel size, because it will be of height 0.
> The parent is a DockLayoutPanel...
>
> But it's ok, since I know the correct size...
>
> Magnus
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment