From 2289854ba7a8879178ec467040e6a3bb9ace0035 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 14 Nov 2012 13:43:35 +0000
Subject: [PATCH] cleaner

---
 Fltk/graphicWindow.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Fltk/graphicWindow.cpp b/Fltk/graphicWindow.cpp
index 41be69dcac..f444f2bfc5 100644
--- a/Fltk/graphicWindow.cpp
+++ b/Fltk/graphicWindow.cpp
@@ -2947,7 +2947,6 @@ void graphicWindow::detachMenu()
   if(browser->h() == 0) resizeMessages(1);
   int w = onelab->w();
   tile->remove(onelab);
-  // make sure browser is not zero-size when adding children
   browser->resize(0, browser->y(), browser->w() + w, browser->h());
   for(unsigned int i = 0; i < gl.size(); i++){
     if(gl[i]->x() == w)
@@ -2986,7 +2985,7 @@ void graphicWindow::attachMenu()
       gl[i]->resize(w, gl[i]->y(), gl[i]->w() - w, gl[i]->h());
   }
   tile->add(onelab);
-  onelab->resize(0, bar ? bar->h() : 0, w, tile->h());
+  onelab->resize(tile->x(), tile->y(), w, tile->h());
   tile->redraw();
 }
 
-- 
GitLab