Skip to content

Commit

Permalink
fix create workspace overlapping button on android
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Apr 16, 2024
1 parent fc20d4c commit 369c096
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions app/qml/account/MMCreateWorkspacePage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ MMPage {

signal createWorkspaceClicked( string name )

pageBottomMarginPolicy: MMPage.BottomMarginPolicy.PaintBehindSystemBar

pageHeader.rightItemContent: MMProgressBar {
anchors.verticalCenter: parent.verticalCenter

Expand Down Expand Up @@ -91,18 +93,20 @@ MMPage {
placeholderText: qsTr( "Your Workspace" )
}

MMListSpacer { height: createButton.height + __style.margin16 }
MMListSpacer {
id: scrollBarBottomSpacer
height: createButton.height + __style.margin16 + __style.safeAreaBottom }
}
}

MMInfoBox {
width: parent.width

anchors.bottom: createButton.top
anchors.bottomMargin: __style.margin20
anchors.bottomMargin: __style.margin40

// hide the bubble on small screens
visible: root.height - dynamicContent.height - root.pageHeader.height - 2 * height > 0
visible: root.height + scrollBarBottomSpacer.height - dynamicContent.height - root.pageHeader.height - 2 * height > 0

title: qsTr( "Tip from Mergin Maps" )
description: qsTr( "A good candidate for a workspace name is the name of your team or organisation" )
Expand All @@ -113,7 +117,7 @@ MMPage {
MMButton {
id: createButton

anchors.bottom: parent.bottom
anchors.bottom: safeAreaSpacer.top
anchors.bottomMargin: __style.margin8

width: parent.width
Expand All @@ -122,6 +126,12 @@ MMPage {

onClicked: root.createWorkspaceClicked( workspaceName.text )
}

MMListFooterSpacer {
id: safeAreaSpacer
height: __style.safeAreaBottom
anchors.bottom: parent.bottom
}
}

// show error message under the respective field
Expand Down

0 comments on commit 369c096

Please sign in to comment.