I have the following dropdown menu I am working on:
I am trying to change the dropdown menu width.
I am overwriting the drawPopupMenuItem() and drawComboBox() methods from the LookAndFeel but I cannot seem to locate anything in these methods I can use to change the width of the rectangle that drops down. Any suggestions?
I can change the width of the rectangle by changing the .withMinimumWidth () argument value in that getOptionsForComboBoxPopupMenu() method but now I need to move that rectangle along the x-axis.
If you change the .withTargetScreenArea() argument in getOptionsForComboBoxPopupMenu() to include a rectangle of the combox, you can translate that by a small amount to shift the rectangle drop-down. You need to use getScreenBounds() to get that rectangle which every Combobox inherits from the Component class. JUCE can get very counter-intuitive sometimes in my opinion but all good now!