title: How do you get JavaFX ListView to be the height of its items?
body: <p>If I create a ListView:</p>
  
  <pre><code>new ListView&lt;&gt;(FXCollections.observableArrayList("1", "2", "3"))
  </code></pre>
  
  <p>I would expect it to create a ListView with 3 rows. But it doesn't. It creates a ListView of 17 or so rows. Is there a way to tell ListView to always be the height such that whatever items are in it are always shown but no blank rows?</p>
  
  <p>Having it auto width would also be useful, so it's always as wide as the widest row.</p>
  
  <p>One purpose of this is that then it could be used in a ScrollPane. I know it has its own scrollbars, but they don't offer sufficient control.</p>