diff --git a/widgets/scrollwidget.cpp b/widgets/scrollwidget.cpp index 2b81666ad..28011fb84 100644 --- a/widgets/scrollwidget.cpp +++ b/widgets/scrollwidget.cpp @@ -108,7 +108,7 @@ public: } - if (widget && widget->size().height() <= q->size().height()) { + if (widget && widget->size().width() <= q->size().width()) { leftBorder->deleteLater(); rightBorder->deleteLater(); leftBorder = 0;