Commit a3e00a5b authored by Gus Grubba's avatar Gus Grubba

Handle full screen (for mobile or tiny screens) at the root window.

parent 4b15d5bc
......@@ -45,8 +45,6 @@ Item {
Component.onCompleted: {
flyButton.checked = true
sectionTitle = flyButton.text
//-- Show full screen
mainWindow.showFullScreen()
}
//-------------------------------------------------------------------------
//-- Fly/Plan state toggle
......
......@@ -29,7 +29,8 @@ ApplicationWindow {
visible: true
Component.onCompleted: {
if(ScreenTools.isMobile) {
//-- Full screen on mobile or tiny screens
if(ScreenTools.isMobile || Screen.height / ScreenTools.realPixelDensity < 120) {
mainWindow.showFullScreen()
} else {
width = ScreenTools.isMobile ? Screen.width : Math.min(250 * Screen.pixelDensity, Screen.width)
......
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