Example #1
0
 protected void onChildSizeChange() {
   ComponentConnector child = getContent();
   if (child == null) {
     return;
   }
   Style childStyle = child.getWidget().getElement().getStyle();
   /*
    * Must set absolute position if the child has relative height and
    * there's a chance of horizontal scrolling as some browsers will
    * otherwise not take the scrollbar into account when calculating the
    * height. Assuming v-ui does not have an undefined width for now, see
    * #8460.
    */
   if (child.isRelativeHeight() && !BrowserInfo.get().isIE9()) {
     childStyle.setPosition(Position.ABSOLUTE);
   } else {
     childStyle.clearPosition();
   }
 }
 @Override
 public boolean isRelativeHeight() {
   return child.isRelativeHeight();
 }