diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-01-06 14:52:57 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-01-06 14:52:57 +0100 |
| commit | 516f9e78857c0d48c9024e131eb468531097edd5 (patch) | |
| tree | 6a015000ba03df92f136b7ea257ae072eb9a6049 | |
| parent | e1cd6dec4a6ada7f5591271ec9e19cff1749bdcf (diff) | |
Fix "When zooming window, the window size range must be adjusted" (#880)
| -rw-r--r-- | src/Fl_Window_Driver.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_Window_Driver.cxx b/src/Fl_Window_Driver.cxx index 085c9f61e..c09581625 100644 --- a/src/Fl_Window_Driver.cxx +++ b/src/Fl_Window_Driver.cxx @@ -244,6 +244,7 @@ void Fl_Window_Driver::resize_after_scale_change(int ns, float old_f, float new_ if (Y+H/2 < sY) Y = sY-H/2+d; else if (Y+H/2 > sY+sH-1) Y = sY+sH-1-H/2-d; } + size_range(); // adjust the OS-level boundary size values for the window (#880) is_a_rescale_ = true; pWindow->resize(X, Y, W, H); is_a_rescale_ = false; |
