Skip to content

Commit

Permalink
Break landscape mode again :(
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoTheThird committed Jul 17, 2017
1 parent 0c16b15 commit 4ffabfd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
14 changes: 7 additions & 7 deletions po/8192.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 8192\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-17 16:07+0000\n"
"POT-Creation-Date: 2017-07-17 18:22+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -26,7 +26,7 @@ msgid "HIGHSCORE"
msgstr ""

#: ../qml/modules/Footer.qml:61 ../qml/modules/Footer.qml:69
#: ../qml/Main.qml:171 ../qml/Main.qml:189
#: ../qml/Main.qml:172 ../qml/Main.qml:190
msgid "Restart"
msgstr ""

Expand Down Expand Up @@ -78,23 +78,23 @@ msgstr ""
msgid "Welcome to 8192"
msgstr ""

#: ../qml/Main.qml:161
#: ../qml/Main.qml:162
msgid "Victory"
msgstr ""

#: ../qml/Main.qml:164
#: ../qml/Main.qml:165
msgid "Keep going"
msgstr ""

#: ../qml/Main.qml:185
#: ../qml/Main.qml:186
msgid "Game over. :("
msgstr ""

#: ../qml/Main.qml:186
#: ../qml/Main.qml:187
msgid "Score"
msgstr ""

#: ../qml/Main.qml:198
#: ../qml/Main.qml:199
msgid "Quit"
msgstr ""

Expand Down
13 changes: 7 additions & 6 deletions qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,14 @@ Window {

Column {
id: gameColumn
width: (parent.width - units.gu(2) < parent.height - header.height - footer.height - units.gu(10))
? parent.width - units.gu(2)
: parent.height - header.height - footer.height - units.gu(10)
height: header.height + game.height + footer.height + units.gu(2)
anchors {
centerIn: parent
verticalCenterOffset: units.gu(3)
fill: parent
margins: units.gu(1)
topMargin: units.gu(7)
leftMargin: footer.bottom.x - units.gu(1) < gamePage.bottom.x ?
gamePage.width - width : units.gu(1)
rightMargin: footer.bottom.x - units.gu(1) > gamePage.bottom.x ?
gamePage.width - width : units.gu(1)
}
spacing: units.gu(1)

Expand Down

0 comments on commit 4ffabfd

Please sign in to comment.