Try the following modifications to DockLayoutPanel :

Add this somewhere in the class:
  AnimationCallback animationCallback = new AnimationCallback () {
     @Override
     public void onAnimationComplete () {
        System.out.println("\r\nAnimation complete!\r\n");
        onResize();
     }

     @Override
     public void onLayout (Layer layer, double progress) {
        // do nothing
     }
   };

Modify these functions:
  @Override
  public void animate(int duration) {
    animate(duration, animationCallback);
  }

  @Override
  public void forceLayout() {
    layoutCmd.cancel();
    doLayout();
//    layout.layout();
//    onResize();
    layout.layout(0, animationCallback);
  }

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to