# HG changeset patch # User frosch # Date 2011-01-09 20:40:35 # Node ID aa8fb4c93536020561f6f31659493925035204bd # Parent 76fa7a1c20f10458a0f6b5ae84338ae8e7193b79 (svn r21764) -Change: Make the scrollbar associated to a NWidgetMatrix scroll in steps of the matrix when using the wheel or the scrollbar-buttons. diff --git a/src/widget.cpp b/src/widget.cpp --- 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); } /**