@Override public void onResize() { super.onResize(); if (isAttached()) { ResizeEvent.fire(this, getElement().getOffsetWidth(), getElement().getOffsetHeight()); } }
/** * Send new dimensions to the server. * * <p>For internal use only. May be removed or replaced in the future. */ public void sendClientResized() { Profiler.enter("VUI.sendClientResized"); Element parentElement = getElement().getParentElement(); int viewHeight = parentElement.getClientHeight(); int viewWidth = parentElement.getClientWidth(); ResizeEvent.fire(this, viewWidth, viewHeight); Profiler.leave("VUI.sendClientResized"); }
@Override public void onResize(ResizeEvent event) { int height = event.getHeight(); onWindowResized(height); }
public void onResize(ResizeEvent event) { scrollPanel.setHeight((event.getHeight() - 20) + "px"); }
/** * @see * com.google.gwt.event.logical.shared.ResizeHandler#onResize(com.google.gwt.event.logical.shared.ResizeEvent) */ @Override public void onResize(ResizeEvent event) { int width = event.getWidth(); int height = event.getHeight(); resizeMainView(width, height); }
@Override public HandlerRegistration addResizeHandler(ResizeHandler handler) { return addHandler(handler, ResizeEvent.getType()); }
/** * Fires the resize event. * * <p> */ private void fireResizeEvent() { ResizeEvent.fire(this, getOffsetWidth(), getOffsetHeight()); }