Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Commit

Permalink
fixed bug in window resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
alamminsalo committed Mar 12, 2016
1 parent fa07d72 commit b2ae30c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import "style"
ApplicationWindow {
id: root
visible: true
height: Screen.height * 0.7
width: height * 1.2

title: "Orion"
//flags: Qt.FramelessWindowHint | Qt.Window
visibility: g_fullscreen ? "FullScreen" : "Windowed"
Expand Down Expand Up @@ -82,6 +81,9 @@ ApplicationWindow {

Component.onCompleted: {

height=Screen.height * 0.7
width=height * 1.2

setX(Screen.width / 2 - width / 2);
setY(Screen.height / 2 - height / 2);

Expand Down

0 comments on commit b2ae30c

Please sign in to comment.