title: Swt resize Composite but not the window
body: <p>I am trying to change the size of the composite.
  I do it with the following.</p>
  
  <pre><code>GridData gd = (GridData)parent_.getLayoutData();
  gd.heightHint = (int)(parent_.getSize().y / 1.73);
  </code></pre>
  
  <p>So when a certain action is performed I would like to resize that component and make it smaller. However after caling that I have to do <code>getShell().pack();</code> and whenever I do that what happens is that the whole window where the component is located takes up as much space vertically as there is available on the screen. Any idea how I prevent the window from doing that? I am really bad at swt, and would love some tutorials too if you can point me in the right direction.</p>