Make padding in docked panel conditianal

This commit is contained in:
Anton Thomasson 2021-03-06 20:20:04 +01:00
parent 905745714c
commit 02b0d62688

View file

@ -341,10 +341,11 @@ Page {
id: panelColumn
width: parent.width
spacing: Theme.paddingLarge
topPadding: Theme.paddingLarge
topPadding: page.isPortrait && !warningRow.visible ? 2*Theme.paddingLarge : Theme.paddingLarge
bottomPadding: page.isPortrait ? 2*Theme.paddingLarge : Theme.paddingLarge
Row {
id: warningRow
anchors.horizontalCenter: parent.horizontalCenter
visible: Mimer.isOffice(page.selectedFileType)