I have tried the followings at the end of omModuleLoad of the entry point, but it does not work. Any suggestion?
int totalHeight=DOM.getElementPropertyInt(app.getElement (),"clientHeight"); int topPanelHeight = app.getTopPanel().getOffsetHeight(); // set the height of the 2 widget in the bottomPanel DOM.setStyleAttribute(app.getContentDecorator().getElement(), "height", (totalHeight - topPanelHeight) + "px"); DOM.setStyleAttribute(app.getStackPanel().getElement(), "height", (totalHeight - topPanelHeight) + "px"); On Mar 2, 9:02 am, Duong BaTien <duong.bat...@gmail.com> wrote: > On Mon, 2009-03-02 at 04:22 -0800, alex.d wrote: > > Widgets don't return proper size values because they are not attached > > to the DOM before they are showed. Use fixed size values. > > Yes, you are right. But please share how to set the widget to the height > of the browser window. For example, in the GWT Showcase example, i can > use the contentWrapper or the menuWrapper widget to set the width and > the height: wrapperWidget.setWidth(100%), wrapperWidget.setHeight > (360px). How can i calculate (instead of forcing 360px) the height to be > exactly the height of the window browser less the height of the topPanel > FlexTable of the GWT Showcase? > > Thanks > BaTien > DBGROUPS and BudhNet > > > > > On 2 Mrz., 11:46, LEDUQUE Mickaël <mledu...@gmail.com> wrote: > > > We're using GWT 1.5.2 on IE6 if that matters. --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---