1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

[ComboTabBar] Fixed weird scrolling on resizing.

This commit is contained in:
S. Razi Alavizadeh 2013-12-01 01:58:26 +03:30 committed by nowrep
parent 6fcbefc7b1
commit 23876a3765

View File

@ -1192,7 +1192,7 @@ void TabBarScrollWidget::ensureVisible(int index, int xmargin)
return;
}
xmargin = qMin(xmargin, width() / 2);
xmargin = qMin(xmargin, m_scrollArea->viewport()->width() / 2);
// Qt Bug? the following lines were taken from QScrollArea::ensureVisible() and
// then were fixed. The original version caculates wrong values in RTL layouts.