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/Fl_Type.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/Fl_Type.cxx')
| -rw-r--r-- | fluid/Fl_Type.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fluid/Fl_Type.cxx b/fluid/Fl_Type.cxx index 659a6472e..ad5786f78 100644 --- a/fluid/Fl_Type.cxx +++ b/fluid/Fl_Type.cxx @@ -190,6 +190,7 @@ void earlier_cb(Fl_Widget*,void*) { if (g && g->level == f->level && !g->selected) { if (!mod) undo_checkpoint(); f->move_before(g); + if (f->parent) f->parent->layout_widget(); mod = 1; } } @@ -214,6 +215,7 @@ void later_cb(Fl_Widget*,void*) { if (g && g->level == f->level && !g->selected) { if (!mod) undo_checkpoint(); g->move_before(f); + if (f->parent) f->parent->layout_widget(); mod = 1; } } |
