diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-10-27 18:31:14 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-10-27 18:31:20 +0200 |
| commit | 4b5985eb49e057aa69b8ba4e91d0ad11e1cc87ff (patch) | |
| tree | 4394fabc7e0b9fbdd2b54b0c8aaa682027eae837 /fluid/factory.cxx | |
| parent | aab6afd32cc03812798883f8cf2be58161b12f8c (diff) | |
FLUID: Fixes issues when pasting widget into Fl_Flex #809
* new virtual function layout_widget() to inform parents after
all children were added
Diffstat (limited to 'fluid/factory.cxx')
| -rw-r--r-- | fluid/factory.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fluid/factory.cxx b/fluid/factory.cxx index 7bd93f946..707a5b71d 100644 --- a/fluid/factory.cxx +++ b/fluid/factory.cxx @@ -1195,7 +1195,7 @@ Fl_Type *add_new_widget_from_user(Fl_Type *inPrototype, Strategy strategy) { wt->ideal_size(w, h); if ((t->parent && t->parent->is_a(ID_Flex))) { - // Do not resize or layout the widget. Flex will need the widget size. + t->parent->layout_widget(); } else if ( wt->is_a(ID_Group) && wt->parent && wt->parent->is_a(ID_Tabs) |
