aboutsummaryrefslogtreecommitdiff
path: root/gui/ListWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/ListWidget.cpp')
-rw-r--r--gui/ListWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/ListWidget.cpp b/gui/ListWidget.cpp
index 539a2efa78..7781cf78c9 100644
--- a/gui/ListWidget.cpp
+++ b/gui/ListWidget.cpp
@@ -41,7 +41,7 @@ ListWidget::ListWidget(GuiObject *boss, const String &name)
// This ensures that _entriesPerPage is properly initialised.
reflowLayout();
- _scrollBar = new ScrollBarWidget(this, _w - _scrollBarWidth, 0, _scrollBarWidth, _h);
+ _scrollBar = new ScrollBarWidget(this, _w - _scrollBarWidth + 1, 0, _scrollBarWidth, _h);
_scrollBar->setTarget(this);
setFlags(WIDGET_ENABLED | WIDGET_CLEARBG | WIDGET_RETAIN_FOCUS | WIDGET_WANT_TICKLE);
@@ -472,7 +472,7 @@ void ListWidget::reflowLayout() {
_textWidth[i] = 0;
if (_scrollBar) {
- _scrollBar->resize(_w - _scrollBarWidth, 0, _scrollBarWidth, _h);
+ _scrollBar->resize(_w - _scrollBarWidth + 1, 0, _scrollBarWidth, _h);
scrollBarRecalc();
scrollToCurrent();
}