summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/widget.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index e18e2eed2..d7c9e1f16 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1528,9 +1528,7 @@ void NWidgetMatrix::AssignSizePosition(SizingType sizing, uint x, uint y, uint g
/* When resizing, update the scrollbar's count. E.g. with a vertical
* scrollbar becoming wider or narrower means the amount of rows in
* the scrollbar becomes respectively smaller or higher. */
- if (sizing == ST_RESIZE) {
- this->SetCount(this->count);
- }
+ this->SetCount(this->count);
}
void NWidgetMatrix::FillNestedArray(NWidgetBase **array, uint length)