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:
parent
41f7835119
commit
2483c80529
5 changed files with 59 additions and 4 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue