I'm using a ChoiceBox control. The choice box seems to be composed of two parts: the box(displaying the current selection) and a context menu(dropdown). What I find strange is that the dropdown of the choice box(the context menu) has different size than the choice box by default:
http://manvox.com/javafx1.3/choice-box-dropdown.jpeg
I can style the choiceBox's box element by modifying the .choice-box CSS selector. I can also style the dropdown using the .context-menu and .menu-item selectors.
How can I ensure that the dropdown has the same size of it's parent choice box and is aligned to it?
https://forums.oracle.com/forums/thread.jspa?threadID=2315242&tstart=0
http://manvox.com/javafx1.3/choice-box-dropdown.jpeg
I can style the choiceBox's box element by modifying the .choice-box CSS selector. I can also style the dropdown using the .context-menu and .menu-item selectors.
How can I ensure that the dropdown has the same size of it's parent choice box and is aligned to it?
https://forums.oracle.com/forums/thread.jspa?threadID=2315242&tstart=0