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

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