1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Scale PopupMenus with the AffineTransform and scaling factor of their target components (see BREAKING-CHANGES.txt)

This commit is contained in:
hogliux 2017-06-29 18:01:52 +01:00
parent 41f7835119
commit 2483c80529
5 changed files with 59 additions and 4 deletions

View file

@ -1104,6 +1104,8 @@ Component* LookAndFeel_V2::getParentComponentForMenuOptions (const PopupMenu::Op
void LookAndFeel_V2::preparePopupMenuWindow (Component&) {}
bool LookAndFeel_V2::shouldPopupMenuScaleWithTargetComponent (const PopupMenu::Options&) { return true; }
//==============================================================================
void LookAndFeel_V2::fillTextEditorBackground (Graphics& g, int /*width*/, int /*height*/, TextEditor& textEditor)
{

View file

@ -180,6 +180,8 @@ public:
Component* getParentComponentForMenuOptions (const PopupMenu::Options& options) override;
bool shouldPopupMenuScaleWithTargetComponent (const PopupMenu::Options& options) override;
//==============================================================================
void drawComboBox (Graphics&, int width, int height, bool isButtonDown,
int buttonX, int buttonY, int buttonW, int buttonH,