I am trying to change the width of the Font size combobox's listview of the HTMLEditor Component. Here is what i tried already:
editor.lookup( "font-size-menu-button" ).lookup( "list-view" )
.setStyle( "-fx-pref-width: " + ((ComboBox) editor.lookup( "font-size-menu-button" )).getPrefWidth() + "; -fx-max-width: "
+ ((ComboBox) editor.lookup( "font-size-menu-button" )).getPrefWidth() + ";" );
I want it to be the same as the ComboBox width is. I have also tried trying it per css only but i can not get the size that way, i have to guess, that is too unsafe i think.