diff options
| author | Matthias Melcher <git@matthiasm.com> | 2021-12-17 18:34:51 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2021-12-17 18:38:26 +0100 |
| commit | 3626e82057e2cb581afbd5495a87c00db7d7c9b8 (patch) | |
| tree | 74c7cb984c9816542895fdd35c026cd29e908256 /fluid/Shortcut_Button.cxx | |
| parent | ba3041be6c86c05aef1f505a10df8c8b05e7b8de (diff) | |
GitHub #326: browser scrolling should be much improved
Code now convinces browser to rebuild when the tree changes by UI.
When widgets are move, the current widget should always be visible.
It's the responsibility of the UI callback to update the browser.
Diffstat (limited to 'fluid/Shortcut_Button.cxx')
| -rw-r--r-- | fluid/Shortcut_Button.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fluid/Shortcut_Button.cxx b/fluid/Shortcut_Button.cxx index b22d385ce..cb18aa2cc 100644 --- a/fluid/Shortcut_Button.cxx +++ b/fluid/Shortcut_Button.cxx @@ -37,6 +37,7 @@ copied or otherwise examined. #include "Fl_Window_Type.h" #include "factory.h" #include "widget_panel.h" +#include "widget_browser.h" #include <FL/platform.H> #include <FL/Fl_Button.H> @@ -185,6 +186,8 @@ int Widget_Bin_Window_Button::handle(int inEvent) w->position(Fl::event_x_root(), Fl::event_y_root()); } } + widget_browser->display(Fl_Type::current); + widget_browser->rebuild(); } return Fl_Button::handle(inEvent); } |
