summaryrefslogtreecommitdiff
path: root/src/widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget.cpp')
-rw-r--r--src/widget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index 4170b2a01..84fdadbb8 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1404,6 +1404,7 @@ void NWidgetMatrix::SetCount(int count)
count += -this->pip_inter + this->pip_pre + this->pip_post; // We counted an inter too much in the multiplication above
this->sb->SetCount(count);
this->sb->SetCapacity(this->sb->IsVertical() ? this->current_y : this->current_x);
+ this->sb->SetStepSize(this->sb->IsVertical() ? this->widget_h : this->widget_w);
}
/**