title: How to resize combobox for ChangeListener when searching in javafx?
body: <p>When searching for a particular word in a combobox in JavaFX application, the dropdown is expanding more than usual combobox.</p>
  
  <p><a href="https://i.stack.imgur.com/1i3hc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1i3hc.png" alt="Searchable combobox"></a></p>
  
  <p>Below image is a normal combobox dropdown if I do not search for a particular item.</p>
  
  <p><a href="https://i.stack.imgur.com/mYVC8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mYVC8.png" alt="enter image description here"></a> </p>
  
  <p>How can I make a searchable dropdown that is the same as the normal dropdown?</p>