diff options
Diffstat (limited to 'src/Fl_Pack.cxx')
| -rw-r--r-- | src/Fl_Pack.cxx | 14 |
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(); +} + + |
