remove arbitrary margin
This commit is contained in:
parent
4da55c78e6
commit
6327065728
@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user