Well, there are multiple case here :
 1. Widgets that adjust themselves depending on the size of neighbour
widgets. Some widgets have their size fixed decided in CSS styles, the
other ones adjust depending on this size in the onload()
 2. widgets like the incubator PagingScrollTable that have internal
components that compute their size. For example

    (in com.google.gwt.widgetideas.table.client.ScrollTable)
    int totalHeight = DOM.getElementPropertyInt(getElement(),
"clientHeight");
    int headerHeight = headerTable.getOffsetHeight();
    int footerHeight = 0;
    if (footerTable != null) {
      footerHeight = footerTable.getOffsetHeight();
    }
    DOM.setStyleAttribute(headerWrapper, "height", headerHeight +
"px");
    if (footerWrapper != null) {
      DOM.setStyleAttribute(footerWrapper, "height", footerHeight +
"px");
    }
    DOM.setStyleAttribute(dataWrapper, "height",
        (totalHeight - headerHeight - footerHeight) + "px");

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to