1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

Added some assertions, fixed a win32 mouse mouse cursor problem, tweaked PopupMenu::showAt().

This commit is contained in:
Julian Storer 2010-11-26 12:57:24 +00:00
parent 081744b177
commit 645637ab09
14 changed files with 135 additions and 119 deletions

View file

@ -215,8 +215,8 @@ void MenuBarComponent::showMenu (int index)
const Rectangle<int> itemPos (xPositions [index], 0, xPositions [index + 1] - xPositions [index], getHeight());
m.showMenu (itemPos + getScreenPosition(),
0, itemPos.getWidth(), 0, 0, true, this,
m.showMenu (localAreaToGlobal (itemPos),
0, itemPos.getWidth(), 0, 0, this,
new AsyncCallback (this, index));
}
}