When the content panel is resized, the layout calls setSize(width, height) on the panel. GridPanel takes this and updates the container size and then calls autoSize(). You will want to just call autoSize().