Skip to content

Commit c2aac91

Browse files
committed
Checked all TODOs
1 parent be345c5 commit c2aac91

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

Source/Components/ArrowPopupMenu.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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
}

Source/Sidebar/SearchPanel.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)