From a8cc340321c308df72889ecb5b9ad2ba4c37e8af Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 10 Dec 2021 17:08:56 +0100 Subject: 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 --- src/Fl_Message.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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()) -- cgit v1.2.3