File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed
Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,6 @@ class ArrowPopupMenu final : public Component
4848 if (direction == ArrowDirection::TopBottom) {
4949 menuToAttachTo->setBounds (menuToAttachTo->getBounds ().translated (-15 , menuMargin - 3 ));
5050 } else {
51- // adjust the popupMenu to be in the correct y position
52- auto const menuBounds = menuToAttachTo->getBounds ().reduced (menuMargin + 5 );
53- auto const targetBounds = targetComponent->getBounds ();
54-
55- // TODO: this was totally broken as is for some reason so for now it's hard coded
56- int const yOffset = static_cast <int >(static_cast <float >(targetBounds.getBottom () - menuBounds.getBottom ()) / getApproximateScaleFactorForComponent (menuToAttachTo));
57-
5851 menuToAttachTo->setBounds (menuToAttachTo->getBounds ().translated (30 , -40 ));
5952 }
6053 }
Original file line number Diff line number Diff line change @@ -31,9 +31,6 @@ class OpenInspector final : public Component {
3131 buttonOpenInspector.setColour (TextButton::buttonOnColourId, backgroundColour.contrasting (0 .1f ));
3232 buttonOpenInspector.setColour (ComboBox::outlineColourId, Colours::transparentBlack);
3333 buttonOpenInspector.setButtonText (" Open inspector" );
34- // TODO: something is probably wrong with the presentation of this popup overall, but the tooltip seems redundant
35- // buttonOpenInspector.setTooltip("Open inspector for object");
36-
3734 addAndMakeVisible (buttonOpenInspector);
3835
3936 setSize (108 , 33 );
You can’t perform that action at this time.
0 commit comments