@Override
 public void onResize() {
   super.onResize();
   if (isAttached()) {
     ResizeEvent.fire(this, getElement().getOffsetWidth(), getElement().getOffsetHeight());
   }
 }
Example #2
0
  /**
   * 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");
  }
Example #3
0
 @Override
 public void onResize(ResizeEvent event) {
   int height = event.getHeight();
   onWindowResized(height);
 }
Example #4
0
 public void onResize(ResizeEvent event) {
   scrollPanel.setHeight((event.getHeight() - 20) + "px");
 }
Example #5
0
 /**
  * @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());
  }