GUI: Avoid double scaling for scrollbar and tab navbuttons

This commit is contained in:
Eugene Sandulenko 2021-03-31 00:37:31 +02:00
parent 04f040afce
commit 493a343e6a
3 changed files with 4 additions and 4 deletions

@ -995,7 +995,7 @@ void OptionsContainerWidget::reflowLayout() {
}
if (_scrollContainer) {
_scrollContainer->resize(_x, _y, _w, _h);
_scrollContainer->resize(_x, _y, _w, _h, false);
}
Widget *w = _firstWidget;

@ -723,7 +723,7 @@ void ListWidget::reflowLayout() {
assert(_entriesPerPage > 0);
if (_scrollBar) {
_scrollBar->resize(_w - _scrollBarWidth, 0, _scrollBarWidth, _h);
_scrollBar->resize(_w - _scrollBarWidth, 0, _scrollBarWidth, _h, false);
scrollBarRecalc();
scrollToCurrent();
}

@ -379,8 +379,8 @@ void TabWidget::reflowLayout() {
int x = _w - _butRP - _butW * 2 - 2;
int y = _butTP - _tabHeight;
_navLeft->resize(x, y, _butW, _butH);
_navRight->resize(x + _butW + 2, y, _butW, _butH);
_navLeft->resize(x, y, _butW, _butH, false);
_navRight->resize(x + _butW + 2, y, _butW, _butH, false);
}
void TabWidget::drawWidget() {