diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-12-12 22:07:31 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-12-12 22:07:39 +0100 |
| commit | 32b10cb626fcdf59336a8fed25971eeeebfac6f4 (patch) | |
| tree | 6b9deae4aea2df14c15dbd8a07131b6323ed850e | |
| parent | 04cf2c4c7d2be58333c5c2add9f402c9e58022ec (diff) | |
#863: Fixes Fl_tile resize behavior when scaling window
| -rw-r--r-- | src/Fl_Tile.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fl_Tile.cxx b/src/Fl_Tile.cxx index c37f2da89..5fc015e62 100644 --- a/src/Fl_Tile.cxx +++ b/src/Fl_Tile.cxx @@ -573,8 +573,11 @@ void Fl_Tile::resize(int X,int Y,int W,int H) { } int tr = x() + w(), tb = y() + h(); move_intersection(tr, tb, tr-dw, tb-dh); - Fl_Widget::resize(X,Y,W,H); init_sizes(); + if (Fl_Window::is_a_rescale()) + Fl_Group::resize(X,Y,W,H); + else + Fl_Widget::resize(X,Y,W,H); return; } |
