Popup direction in ComboBox

Hi guys,

I noticed (since J7) that now the popup direction in a combobox changes according to the selected item position while, before, the menu direction was just downwards.

The only way I found, so far, to set the popup direction is to create a new class derived from ComboBox and overriding showPopup() method to just pass some Options to the PopupMenu. Am I missing something or that’s the only way to do that?



For what it’s worth to anyone out there, the ComboBox class references the options via the look and feel method so you can just override this method in your look and feel:
PopupMenu::Options getOptionsForComboBoxPopupMenu (ComboBox& box, Label& label)