mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 20:06:18 +08:00
Don't for a box type for pulldowns (#675)
This commit is contained in:
+2
-1
@@ -373,7 +373,8 @@ menuwindow::menuwindow(const Fl_Menu_Item* m, int X, int Y, int Wp, int Hp,
|
|||||||
drawn_selected = -1;
|
drawn_selected = -1;
|
||||||
if (button) {
|
if (button) {
|
||||||
box(button->box());
|
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 {
|
} else {
|
||||||
box(FL_UP_BOX);
|
box(FL_UP_BOX);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user