Skip to content

Commit

Permalink
Fix incorrect screens height
Browse files Browse the repository at this point in the history
  • Loading branch information
curoviyxru committed Nov 5, 2023
1 parent de95c14 commit 9b41c5b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion qml/auth/IntroPage.qml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import QtQuick 1.0

Rectangle {
id: introPageRect

Column {
anchors.centerIn: parent
width: parent.width * 2 / 3
spacing: 5

Image {
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width * 2 / 3
width: Math.min(introPageRect.height / 2, parent.width * 2 / 3)
height: width
asynchronous: true
smooth: true
Expand Down
9 changes: 6 additions & 3 deletions qml/control/MainScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,24 @@ Rectangle {

DialogPage {
id: dialogPage
anchors.top: topBar.bottom
anchors.bottom: parent.bottom
width: parent.width < 600 * kgScaling ? parent.width : 300 * kgScaling
height: parent.height
}

MessageIntroPage {
id: messageIntroPage
anchors.top: topBar.bottom
anchors.bottom: parent.bottom
width: messagePage.width
height: parent.height
x: dialogPage.width
}

MessagePage {
id: messagePage
anchors.top: topBar.bottom
anchors.bottom: parent.bottom
width: parent.width < 600 * kgScaling ? parent.width : parent.width - 300 * kgScaling
height: parent.height
}

TopBar {
Expand Down

0 comments on commit 9b41c5b

Please sign in to comment.