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:
parent
6fcbefc7b1
commit
23876a3765
@ -1192,7 +1192,7 @@ void TabBarScrollWidget::ensureVisible(int index, int xmargin)
|
|||||||
return;
|
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
|
// Qt Bug? the following lines were taken from QScrollArea::ensureVisible() and
|
||||||
// then were fixed. The original version caculates wrong values in RTL layouts.
|
// then were fixed. The original version caculates wrong values in RTL layouts.
|
||||||
|
Loading…
Reference in New Issue
Block a user