fix minimum tabbutton width

This commit is contained in:
Marco Martin 2013-01-25 11:27:02 +01:00
parent 64c31f5ca1
commit d6ba0ff0b4

View File

@ -176,7 +176,7 @@ Item {
}
var maxAllowedWidth = theme.defaultFont.mSize.width * 14
var itemWidth = Math.min(maxAllowedWidth, (root.width - (visibleChildCount-1)*10) / visibleChildCount)
var itemWidth = (root.width - (visibleChildCount-1)*10) / visibleChildCount
var itemIndex = mirrored ? childCount - 1 : 0
var increment = mirrored ? - 1 : 1