title: How to force a redraw/re-layout in Ext GWT (GXT)?
body: <p>In GXT, I've got a control with an important panel added to the bottom component, basically like this:</p>
  
  <pre><code>public class SamplePanel extends ContentPanel {
  
  ContentPanel panel = new ContentPanel();    
  
  public SamplePanel() {
      setBottomComponent(panel);
  }
  
  public void setVisible(boolean isVisible) {
      panel.setVisible(isVisible);
  }
  </code></pre>
  
  <p>The panel is being set as the "bottom component" because it needs to stay at the bottom of the widget and viewable at all times.  </p>
  
  <p>The problem is, while the visibility of the panel toggles correctly, the 'bottom component' area doesn't resize to become smaller and fit the new dimensions of the bottom area.</p>
  
  <p>However, I've noticed that the bottom area does resize when I manually change the size of the widget with the mouse.</p>
  
  <p>Is there any way to programatically force a redraw/repaint/re-layout... anything to have the bottom component change to reflect the new size of its contents?</p>
  
  <p>I've tried all of these and they don't work:</p>
  
  <pre><code>public void setVisibility(boolean isVisible) {
          panel.setVisible(isVisible);
          doLayout(true);
          recalculate();
          repaint();
      }
  </code></pre>
  
  <p>Thanks</p>