Don't for a box type for pulldowns (#675)

This commit is contained in:
Matthias Melcher
2023-02-10 16:58:33 +01:00
parent 4440e35693
commit 72f8604381
+2 -1
View File
@@ -373,7 +373,8 @@ menuwindow::menuwindow(const Fl_Menu_Item* m, int X, int Y, int Wp, int Hp,
drawn_selected = -1;
if (button) {
box(button->box());
if (box() == FL_NO_BOX || box() == FL_FLAT_BOX) box(FL_UP_BOX);
// don't force a box type, but make sure that the background is redrawn
if (box() == FL_NO_BOX) box(FL_FLAT_BOX);
} else {
box(FL_UP_BOX);
}