diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-12-10 17:08:56 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-12-10 17:09:28 +0100 |
| commit | a8cc340321c308df72889ecb5b9ad2ba4c37e8af (patch) | |
| tree | 5bee0bb1dd234a99a422ddb7a5cccde49cd234b9 | |
| parent | 6d7faa93e10db58be531a630421555b4fe50f9f3 (diff) | |
Stabilize resizing of common dialogs like fl_choice()
Thanks to Paul D. Hahn for finding these issues on his very old
"CentOS 6 linux with g++ 5.1" system.
For details see the very long thread "fl_choice() dialog apprearance
discrepancy problem in 1.4" (typo intentionally ignored):
https://groups.google.com/g/fltkgeneral/c/UQk3RRf-l4A/m/0GtPNv1CCQAJ
| -rw-r--r-- | src/Fl_Message.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_Message.cxx b/src/Fl_Message.cxx index 4332416db..8a44418e9 100644 --- a/src/Fl_Message.cxx +++ b/src/Fl_Message.cxx @@ -274,6 +274,7 @@ void Fl_Message::resizeform() { button_[i]->resize(x, h - 10 - max_h, button_w[i] - 10, max_h); } } + window_->init_sizes(); } /** @@ -376,6 +377,7 @@ int Fl_Message::innards(const char *fmt, va_list ap, const char *b0, const char if (g) Fl::grab(0); Fl_Group *current_group = Fl_Group::current(); // make sure the dialog does not interfere with any active group + Fl_Group::current(0); window_->show(); Fl_Group::current(current_group); while (window_->shown()) |
