From 24ce7daceb90d46ac42dc1490655d4af04e38d96 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 7 Dec 2011 09:05:36 +0000 Subject: [PATCH] fix resize --- Fltk/onelabWindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Fltk/onelabWindow.cpp b/Fltk/onelabWindow.cpp index ce162b55ff..478690dd50 100644 --- a/Fltk/onelabWindow.cpp +++ b/Fltk/onelabWindow.cpp @@ -642,9 +642,11 @@ onelabWindow::onelabWindow(int deltaFontSize) ((Fl_Menu_Item*)_gear->menu())[2].set(); _gearFrozenMenuSize = _gear->menu()->size(); - Fl_Box *resbox = new Fl_Box(WB, height - BH - 3 * WB, WB, WB); + Fl_Box *resbox = new Fl_Box(WB, WB, + width - 2 * BB - BB / 2 - 4 * WB, + height - 3 * WB - BH); _win->resizable(resbox); - _win->size_range(2 * BB + BB / 2 + 4 * WB, 2 * BH + 3 * WB); + _win->size_range(2 * BB + BB / 2 + 4 * WB + 1, 2 * BH + 3 * WB); _win->position (CTX::instance()->solverPosition[0], CTX::instance()->solverPosition[1]); @@ -668,7 +670,7 @@ static std::string getShortName(const std::string &name) void onelabWindow::rebuildTree() { - int width = (int)(1.4*IW); + int width = (int)(0.5 * _tree->w()); _tree->clear(); _tree->sortorder(FL_TREE_SORT_ASCENDING); -- GitLab