diff options
author | DS <vorunbekannt75@web.de> | 2020-04-18 17:20:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-18 17:20:20 +0200 |
commit | 241bf442608d27df0ce3c74889c357fb5589ab20 (patch) | |
tree | 1733fd7624e87380c9b3ed2c75950ffd5567ab39 /src/gui | |
parent | 7b57d3f613bab05914d3f7210064a3282ea37013 (diff) | |
download | minetest-241bf442608d27df0ce3c74889c357fb5589ab20.tar.gz minetest-241bf442608d27df0ce3c74889c357fb5589ab20.tar.bz2 minetest-241bf442608d27df0ce3c74889c357fb5589ab20.zip |
Apply a scrollbar's default value to scroll containers (#9699)
Fixes #9691.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/guiScrollContainer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/guiScrollContainer.h b/src/gui/guiScrollContainer.h index 9eaa880bf..a0306291e 100644 --- a/src/gui/guiScrollContainer.h +++ b/src/gui/guiScrollContainer.h @@ -38,7 +38,11 @@ public: updateScrolling(); } - inline void setScrollBar(GUIScrollBar *scrollbar) { m_scrollbar = scrollbar; } + inline void setScrollBar(GUIScrollBar *scrollbar) + { + m_scrollbar = scrollbar; + updateScrolling(); + } private: enum OrientationEnum |