From 5062b5a01041772e123f30b9e65de95d82d865a7 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 2 Feb 2019 18:36:44 +0100 Subject: Fixed pulldown menu position when at the bottom of the screen (STR #2880). --- src/Fl_Menu.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx index 51f6ce15a..af8e2f748 100644 --- a/src/Fl_Menu.cxx +++ b/src/Fl_Menu.cxx @@ -400,6 +400,13 @@ menuwindow::menuwindow(const Fl_Menu_Item* m, int X, int Y, int Wp, int Hp, // draw the menu to the right Y = Y-h()+itemheight+Fl::box_dy(box()); } + if (t) { + if (menubar_title) { + Y = Y + Fl::menu_linespacing() - Fl::box_dw(button->box()); + } else { + Y += 2*Htitle+2*BW+3; + } + } } } if (m) y(Y); else {y(Y-2); w(1); h(1);} -- cgit v1.2.3