don't flip tabbar layout if vertical

when the tabbar is vertical, on rtl layout the tabs order should
stay as is, as is rtl, not bottom-to-top

Change-Id: Ia5f1722d5e327207cf584a997dc8073c595c905b
REVIEW:129521
This commit is contained in:
Marco Martin 2016-11-21 17:27:17 +01:00
parent 87d2b1e2f6
commit 783f26e628

View File

@ -198,8 +198,8 @@ Item {
var itemWidth = Math.min(maxAllowedSize, (root.width - (visibleChildCount-1)*10) / visibleChildCount) var itemWidth = Math.min(maxAllowedSize, (root.width - (visibleChildCount-1)*10) / visibleChildCount)
var itemHeight = Math.min(maxAllowedSize, (root.height - (visibleChildCount-1)*10) / visibleChildCount) var itemHeight = Math.min(maxAllowedSize, (root.height - (visibleChildCount-1)*10) / visibleChildCount)
var itemIndex = mirrored ? childCount - 1 : 0 var itemIndex = mirrored && root.isHorizontal ? childCount - 1 : 0
var increment = mirrored ? - 1 : 1 var increment = mirrored && root.isHorizontal ? - 1 : 1
var visibleIndex = 0 var visibleIndex = 0
for (var i = 0; i < childCount; ++i, itemIndex += increment) { for (var i = 0; i < childCount; ++i, itemIndex += increment) {