aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorDS <vorunbekannt75@web.de>2020-04-18 17:20:20 +0200
committerGitHub <noreply@github.com>2020-04-18 17:20:20 +0200
commit241bf442608d27df0ce3c74889c357fb5589ab20 (patch)
tree1733fd7624e87380c9b3ed2c75950ffd5567ab39 /src/gui
parent7b57d3f613bab05914d3f7210064a3282ea37013 (diff)
downloadminetest-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.h6
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