Commit 6a8f2c11 authored by Devin Lin's avatar Devin Lin 🎨
Browse files

Fix abnormal key height on the pinephone

parent f8a3b0e7
......@@ -25,15 +25,14 @@ Kirigami.Page {
readonly property bool inPortrait: initialPage.width < initialPage.height
property int keypadHeight: {
let height = 0;
if (inPortrait)
{
height = initialPage.width * 3/2;
} else
{
if (inPortrait) {
height = initialPage.width * 7/6;
} else {
height = initialPage.width * 3/4;
}
if (height > initialPage.height - Kirigami.Units.gridUnit * 7)
if (height > initialPage.height - Kirigami.Units.gridUnit * 7) {
height = initialPage.height - Kirigami.Units.gridUnit * 7;
}
return height;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment