From 3a7c9fe9781067075c38393b6599d8095a777483 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 23 Jan 2023 16:08:51 +0100 Subject: STR 2639 Fixes Fl_Pack resize behaviour FLUID cleanups FLUID Fl_Pack support improvement FLUID fix error in handling live mode resizables --- src/Fl_Pack.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') diff --git a/src/Fl_Pack.cxx b/src/Fl_Pack.cxx index 7b42076f9..5750c2255 100644 --- a/src/Fl_Pack.cxx +++ b/src/Fl_Pack.cxx @@ -152,3 +152,17 @@ void Fl_Pack::draw() { draw_label(); } } + +/** Override Fl_Group resize behaviour. + + Resizing a Pack will not resize any of its children, but trigger a redraw, + which in turn recalculates the dimensions of all children. + + \param[in] X, Y, W, H new posistion and size of Pack + */ +void Fl_Pack::resize(int X, int Y, int W, int H) { + Fl_Widget::resize(X, Y, W, H); + redraw(); +} + + -- cgit v1.2.3