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
This commit is contained in:
Albrecht Schlosser
2021-12-10 17:08:56 +01:00
parent 6d7faa93e1
commit a8cc340321
+2
View File
@@ -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())