Skip to content
Snippets Groups Projects
Commit 2ae1c81f authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

keep track of menu window position/height during attach/detach

parent 09b8d365
No related branches found
No related tags found
No related merge requests found
...@@ -2998,6 +2998,9 @@ void graphicWindow::detachMenu() ...@@ -2998,6 +2998,9 @@ void graphicWindow::detachMenu()
void graphicWindow::attachMenu() void graphicWindow::attachMenu()
{ {
if(!_menuwin || !_onelab || !_browser) return; if(!_menuwin || !_onelab || !_browser) return;
CTX::instance()->menuSize[1] = _menuwin->h();
CTX::instance()->menuPosition[0] = _menuwin->x();
CTX::instance()->menuPosition[1] = _menuwin->y();
_menuwin->remove(_onelab); _menuwin->remove(_onelab);
_menuwin->hide(); _menuwin->hide();
delete _menuwin; delete _menuwin;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment