Skip to content

Commit

Permalink
fix popup menu position of the console
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreguillot committed Feb 17, 2018
1 parent 6e561f3 commit 4aadb33
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Source/PluginEditorConsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ void PluginEditorConsole::buttonClicked(Button* button)
m.addItem(2, "Error", true, m_level == ConsoleLevel::Error);
m.addItem(3, "Normal", true, m_level == ConsoleLevel::Normal);
m.addItem(4, "All", true, m_level == ConsoleLevel::Log);

Point<int> pos = Component::getScreenPosition().translated(0, 292);
int level = m.showAt(Rectangle<int>(pos.x, pos.y, 100, 48), 0, 0, CamoLookAndFeel::getDefaultFont().getHeight() + 2);

int level = m.show(0, 0, CamoLookAndFeel::getDefaultFont().getHeight() + 2);
stopTimer();
if(bool(level) && ConsoleLevel(level - 1) != m_level)
{
Expand Down

0 comments on commit 4aadb33

Please sign in to comment.