diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-07-20 13:48:43 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-07-20 13:49:19 +0200 |
| commit | 43fe6ee02720782ce9da715b57c8d0037e6ef641 (patch) | |
| tree | 10ba1b2a287ba93c4dc15b3a5340549c3a9f57b1 /fluid/Fl_Widget_Type.cxx | |
| parent | 4ec02555ef84965cc83e62e4181f091103bfb269 (diff) | |
FLUID improves positioning and sizing new widgets
Better default sizes for text based widgets and menu managers
Better Menu refresh on custom text heights
Smarter positioning of menu bars and groups inside tabs
Fixes wrong include guard
Diffstat (limited to 'fluid/Fl_Widget_Type.cxx')
| -rw-r--r-- | fluid/Fl_Widget_Type.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 674949df5..8556de03b 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -70,14 +70,9 @@ const char* subclassname(Fl_Type* l) { // Return the ideal widget size... void Fl_Widget_Type::ideal_size(int &w, int &h) { - h = o->labelsize(); - o->measure_label(w, h); - - w += Fl::box_dw(o->box()); - h += Fl::box_dh(o->box()); - - if (w < 15) w = 15; - if (h < 15) h = 15; + w = 120; + h = 100; + Fd_Snap_Action::better_size(w, h); } /** |
