Improve HRepeater width properties

This commit is contained in:
miruka
2019-12-19 15:56:07 -04:00
parent 2229b41af1
commit be0541f2d9
5 changed files with 30 additions and 15 deletions

View File

@@ -10,7 +10,7 @@ HDrawer {
saveName: "roomPane"
edge: Qt.RightEdge
defaultSize: buttonRepeater.childrenImplicitWidth
defaultSize: buttonRepeater.summedImplicitWidth
minimumSize:
buttonRepeater.count > 0 ? buttonRepeater.itemAt(0).implicitWidth : 0

View File

@@ -143,7 +143,7 @@ HRowLayout {
parent.paintedWidth +
parent.leftPadding + parent.rightPadding,
linksRepeater.childrenWidth +
linksRepeater.summedWidth +
(pureMedia ? 0 : parent.leftPadding + parent.rightPadding),
)
height: contentColumn.height