Permalink
Browse files

When displaying the menu popup using the hotkey, only adjust for the …

…tab bar if it is on top.
  • Loading branch information...
1 parent 4e692f7 commit 918002e094edb4ceb46f626955284d5cc941278d @ShadowFlare committed Apr 3, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 Console/MainFrame.cpp
View
@@ -1569,9 +1569,11 @@ LRESULT MainFrame::OnPopupPopupMenu(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*h
pt.y = windowRect.top;
// adjust for the toolbar height
+ ControlsSettings& controlsSettings= g_settingsHandler->GetAppearanceSettings().controlsSettings;
CReBarCtrl rebar(m_hWndToolBar);
pt.y += rebar.GetBarHeight();
- pt.y += GetTabAreaHeight();
+ if (!controlsSettings.bTabsOnBottom)
+ pt.y += GetTabAreaHeight();
//CPoint screenPoint(pt);
//ClientToScreen(&screenPoint);

0 comments on commit 918002e

Please sign in to comment.