summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-01-23 16:08:51 +0100
committerMatthias Melcher <github@matthiasm.com>2023-01-23 16:08:59 +0100
commit3a7c9fe9781067075c38393b6599d8095a777483 (patch)
treeb20488c4d93cf491a5761ee2dbd1328aebe4c312 /src
parent17467b48bdf540cc7fc8d7cbc814a788210f8693 (diff)
STR 2639 Fixes Fl_Pack resize behaviour
FLUID cleanups FLUID Fl_Pack support improvement FLUID fix error in handling live mode resizables
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Pack.cxx14
1 files changed, 14 insertions, 0 deletions
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();
+}
+
+