title: Restricting the OptionGroup width in Vaadin
body: <p>I have a couple of OptionGroups with very long captions that run across the width of the page, which looks very bad. I tried restricting the width of the OptionGroup using setWidth and via CSS, and also tried restricting the width of the parent container; all without effect.</p>
  
  <p>So I made a grid layout with an option group in the first column (spanning all rows), and individual labels for the captions in the second column (one per row). However, in case the captions span multiple lines (which they do in my case), this leads to the radio buttons / checkboxes no longer being aligned to the captions. (Regrettably, I'm not allowed to post images.) For instance, </p>
  
  <p>(o) This is a multiline<br /> 
  (o) caption<br />
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is another multiline<br />
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;caption</p>
  
  <p>I resolved this by creating one OptionGroup per label, and adding each option group in the first column:</p>
  
  <p>(o) This is a multiline<br /> 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;caption<br />
  (o) This is another multiline<br />
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;caption</p>
  
  <p>Clearly, in case of radio buttons, this means multiple buttons can be selected at the same time, since they are no longer linked via a single OptionGroup. Therefore, I registered listeners which, each time a button is selected, de-select all other buttons. And this brings me to my problem; since this "unchecking" is done at the server side, there will unavoidably be some lag, meaning that for some time, multiple radio buttons will appear selected at the client side.</p>
  
  <p>Any ideas on how to resolve this? I only started working with Vaadin recently, so I'm far from an expert. Is there some simple way of restricting the caption width (some magical undocumented CSS class), or do I need to extend / adapt the client-side widget implementation?</p>
  
  <p>Thanks,</p>
  
  <p>William</p>