Skip to content

Commit

Permalink
Header will not be scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
iiLubos committed Dec 12, 2023
1 parent 432ae90 commit b4008da
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 31 deletions.
26 changes: 16 additions & 10 deletions app/qml/onboarding/MMLogin.qml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,24 @@ Page {
}
}

MMHeader {
id: header

x: mainColumn.padding
y: mainColumn.padding
width: parent.width - 2 * mainColumn.padding
headerTitle: qsTr("Log In")
titleFont: __style.h3
backColor: __style.lightGreenColor

onBackClicked: root.backClicked()
}

ScrollView {
width: parent.width
height: parent.height - changeServerButton.height
height: parent.height - changeServerButton.height - header.height - 60 * __dp
anchors.top: header.bottom
anchors.topMargin: 20 * __dp

ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AlwaysOff
Expand All @@ -57,15 +72,6 @@ Page {
spacing: 20 * __dp
padding: 20 * __dp

MMHeader {
width: parent.width - 2 * mainColumn.padding
headerTitle: qsTr("Log In")
titleFont: __style.h3
backColor: __style.lightGreenColor

onBackClicked: root.backClicked()
}

Item { width: 1; height: 1 }

MMInputEditor {
Expand Down
30 changes: 17 additions & 13 deletions app/qml/onboarding/MMSignUp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,24 @@ Page {
}
}

MMHeader {
id: header

x: mainColumn.padding
y: mainColumn.padding
width: parent.width - 2 * mainColumn.padding
headerTitle: qsTr("Sign Up")
titleFont: __style.h3
backColor: __style.lightGreenColor

onBackClicked: root.backClicked()
}

ScrollView {
width: parent.width
height: parent.height
width: parent.width + 40 * __dp
height: parent.height - header.height - 40 * __dp
anchors.top: header.bottom
anchors.topMargin: 20 * __dp

ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AlwaysOff
Expand All @@ -57,17 +72,6 @@ Page {
spacing: 20 * __dp
padding: 20 * __dp

MMHeader {
width: parent.width - 2 * mainColumn.padding
headerTitle: qsTr("Sign Up")
titleFont: __style.h3
backColor: __style.lightGreenColor

onBackClicked: root.backClicked()
}

Item { width: 1; height: 1 }

MMInputEditor {
width: parent.width - 2 * mainColumn.padding
title: qsTr("Username")
Expand Down
16 changes: 8 additions & 8 deletions gallery/qml/pages/OnboardingPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ Page {

Button {
onClicked: {
createWorkspace.visible = true
acceptInvitation.visible = true
}
text: "Create Workspace"
text: "Accept Invitation"
}

Button {
onClicked: {
acceptInvitation.visible = true
createWorkspace.visible = true
}
text: "Accept Invitation"
text: "Create Workspace"
}

Button {
Expand Down Expand Up @@ -94,7 +94,7 @@ Page {
id: signUp

anchors.fill: parent
visible: false
//visible: false

onSignInClicked: console.log("Sign in clicked")
onSignUpClicked: console.log("Sign up clicked")
Expand All @@ -114,16 +114,16 @@ Page {
onCreateWorkspaceClicked: console.log("Create new workspace clicked")
}



MMCreateWorkspace {
id: createWorkspace

anchors.fill: parent
visible: false

onContinueClicked: {visible=false}
onContinueClicked: visible = false
}


MMHowYouFoundUs {
id: howYouFoundUs
anchors.fill: parent
Expand Down

1 comment on commit b4008da

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 23.12.497311 just submitted!

Please sign in to comment.