fix(CreateCommunity): fix separator margins

This commit is contained in:
Jonathan Rainville 2021-04-28 14:26:56 -04:00 committed by Iuri Matias
parent aab008d6ef
commit 6a9bd579d1
2 changed files with 14 additions and 4 deletions

View File

@ -47,10 +47,12 @@ ModalPopup {
id: scrollView
anchors.fill: parent
rightPadding: Style.current.bigPadding
anchors.rightMargin: - Style.current.padding
leftPadding: Style.current.bigPadding
anchors.leftMargin: - Style.current.padding
rightPadding: Style.current.padding
anchors.rightMargin: -Style.current.padding
anchors.topMargin: -Style.current.padding
leftPadding: Style.current.padding
topPadding: Style.current.padding
anchors.leftMargin: -Style.current.padding
contentHeight: content.height
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AlwaysOn
@ -333,6 +335,10 @@ ModalPopup {
id: separator1
anchors.top: colorPicker.bottom
anchors.topMargin: isEdit ? 0 : Style.current.bigPadding
anchors.left: parent.left
anchors.leftMargin: -Style.current.padding
anchors.right: parent.right
anchors.rightMargin: -Style.current.padding
visible: !isEdit
}

View File

@ -45,5 +45,9 @@ Item {
visible: !root.hideSeparator
anchors.top: radioDesc.bottom
anchors.topMargin: visible ? Style.current.halfPadding : 0
anchors.left: parent.left
anchors.leftMargin: -Style.current.halfPadding
anchors.right: parent.right
anchors.rightMargin: -Style.current.halfPadding
}
}