remove arbitrary margin

This commit is contained in:
Marco Martin 2012-10-26 17:02:53 +02:00
parent 4da55c78e6
commit 6327065728

View File

@ -195,7 +195,7 @@ Item {
if (child.implicitWidth != undefined) { if (child.implicitWidth != undefined) {
maxChildWidth = Math.max(maxChildWidth, child.implicitWidth) maxChildWidth = Math.max(maxChildWidth, child.implicitWidth)
contentWidth = Math.max(contentWidth + i*10, (maxChildWidth + buttonFrame.margins.left + buttonFrame.margins.right) * childCount) contentWidth = Math.max(contentWidth, (maxChildWidth + buttonFrame.margins.left + buttonFrame.margins.right) * childCount)
contentHeight = Math.max(contentHeight, (child.implicitHeight + buttonFrame.margins.top + buttonFrame.margins.bottom)) contentHeight = Math.max(contentHeight, (child.implicitHeight + buttonFrame.margins.top + buttonFrame.margins.bottom))
} }
} }