GUI: Fix ScrollContainerWidget look a bit

This commit is contained in:
Alexander Tkachev 2016-06-22 17:59:46 +06:00 committed by Eugene Sandulenko
parent cccf6eed78
commit 9c1eab6415

View File

@ -53,8 +53,8 @@ void ScrollContainerWidget::recalc() {
_verticalScroll->_numEntries = _h + 40;
_verticalScroll->_currentPos = _scrolledY;
_verticalScroll->_entriesPerPage = _limitH;
_verticalScroll->setPos(_w - 16, _scrolledY);
_verticalScroll->setSize(16, _limitH);
_verticalScroll->setPos(_w - 16, _scrolledY+1);
_verticalScroll->setSize(16, _limitH -2);
}
@ -104,7 +104,7 @@ void ScrollContainerWidget::reflowLayout() {
}
void ScrollContainerWidget::drawWidget() {
g_gui.theme()->drawDialogBackground(Common::Rect(_x, _y, _x + _w, _y + getHeight()), ThemeEngine::kDialogBackgroundDefault);
g_gui.theme()->drawDialogBackground(Common::Rect(_x, _y, _x + _w, _y + getHeight() - 1), ThemeEngine::kDialogBackgroundDefault);
}
Widget *ScrollContainerWidget::findWidget(int x, int y) {