title: How can I inherit the preferred size of a ComboBox or ChoiceBox in Java FX from the current selection?
body: <p>It appears that <code>ComboBox</code> and <code>ChoiceBox</code> just have an arbitrarily set preferred width. I don't want to have to guess an appropriate width; I'd like to just inherit the preferred width based on the items in the selection. </p>
  
  <p>Another thing I noticed is that for both <code>ComboBox</code> and <code>ChoiceBox</code>, the popup when I click to select has a proper width based on the options in the selection. But the chooser itself doesn't inherit this width!</p>