mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 22:04:26 +08:00
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:
@@ -274,6 +274,7 @@ void Fl_Message::resizeform() {
|
|||||||
button_[i]->resize(x, h - 10 - max_h, button_w[i] - 10, max_h);
|
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)
|
if (g)
|
||||||
Fl::grab(0);
|
Fl::grab(0);
|
||||||
Fl_Group *current_group = Fl_Group::current(); // make sure the dialog does not interfere with any active group
|
Fl_Group *current_group = Fl_Group::current(); // make sure the dialog does not interfere with any active group
|
||||||
|
Fl_Group::current(0);
|
||||||
window_->show();
|
window_->show();
|
||||||
Fl_Group::current(current_group);
|
Fl_Group::current(current_group);
|
||||||
while (window_->shown())
|
while (window_->shown())
|
||||||
|
|||||||
Reference in New Issue
Block a user