Ejemplo n.º 1
0
 @Override
 public void onResize() {
   super.onResize();
   if (isAttached()) {
     ResizeEvent.fire(this, getElement().getOffsetWidth(), getElement().getOffsetHeight());
   }
 }
Ejemplo n.º 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");
  }
Ejemplo n.º 3
0
 @Override
 public void onResize(ResizeEvent event) {
   int height = event.getHeight();
   onWindowResized(height);
 }
Ejemplo n.º 4
0
 public void onResize(ResizeEvent event) {
   scrollPanel.setHeight((event.getHeight() - 20) + "px");
 }
Ejemplo n.º 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());
 }
Ejemplo n.º 7
0
  /**
   * Fires the resize event.
   *
   * <p>
   */
  private void fireResizeEvent() {

    ResizeEvent.fire(this, getOffsetWidth(), getOffsetHeight());
  }