fix(color): Active widget popup menu causing issues with radio menus (#3417)
This commit is contained in:
@@ -57,7 +57,10 @@ Widget::Widget(const WidgetFactory* factory, Window* parent,
|
||||
|
||||
void Widget::openMenu()
|
||||
{
|
||||
Menu* menu = new Menu(this);
|
||||
// Widgets are placed on a full screen window which is underneath the main view menu bar
|
||||
// Find the parent of this so that when the popup loads it covers the main view menu
|
||||
Window* w = parent->getFullScreenWindow()->getParent();
|
||||
Menu* menu = new Menu(w ? w : this);
|
||||
if (fsAllowed) {
|
||||
menu->addLine(STR_WIDGET_FULLSCREEN, [&]() { setFullscreen(true); });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user