From 5a083f183e5ece4e379a12d7f5b927e54a83d04a Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 20 Dec 2009 20:08:39 +0000 Subject: (svn r18580) -Codechange: Use widget information only for setting scrollbar capacity. --- src/window_gui.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/window_gui.h') diff --git a/src/window_gui.h b/src/window_gui.h index 3cc9f45ea..d2635d881 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -247,6 +247,8 @@ public: if (this->cap + this->pos > this->count) this->pos = max(0, this->count - this->cap); } + void SetCapacityFromWidget(Window *w, int widget, int padding = 0); + /** * Sets the position of the first visible element * @param position the position of the element -- cgit v1.2.3-54-g00ecf