PopupPanel size problem

171 views
Skip to first unread message

tong123123

unread,
Jul 9, 2012, 4:37:33 AM7/9/12
to google-we...@googlegroups.com
In developer guide
https://developers.google.com/web-toolkit/doc/2.4/DevGuideUiPanels
seems it must explicit set the size inside PopupPanel
in section

Using a LayoutPanel without RootLayoutPanel



my PopupPanel encloses a DockLayoutPanel and the DockLayoutPanel has size
setSize("1230px", "720px");

the problem is different computer will have different resolution, so sometime the PopupPanel is too large to see in the client's computer, sometime it is too small to see in another client's computer, any method to resolve it?

the popuppanel is shown as attached (this resolution is just match in my pc, but not in others clients pc).



page1 - hidden.png

tong123123

unread,
Jul 9, 2012, 6:20:25 AM7/9/12
to google-we...@googlegroups.com
is using a percentage of Window.getClientHeight() and Window.getClientWidth() the correct direction?

ashwin....@gmail.com

unread,
Jul 9, 2012, 6:28:39 AM7/9/12
to google-we...@googlegroups.com
are you setting the size of the docklayout panel or making it use all the available size of your popuppanel? Yes you can use window %. 

I would suggest you set min width and height for your popup panel and make the docklayout panel cover the width and height of your popup.  Setting min width and height would ensure that even on small screens your widget would render tidily.

~Ashwin

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/O0JkE2ZKRugJ.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Reply all
Reply to author
Forward
0 new messages