Browse Source

Allow smaller window sizes.

Tobias Hieta 9 years ago
parent
commit
1f44698375
1 changed files with 10 additions and 2 deletions
  1. 10 2
      src/ui/webview.qml

+ 10 - 2
src/ui/webview.qml

@@ -10,8 +10,10 @@ KonvergoWindow
   title: "Plex Media Player"
   objectName: "mainWindow"
   visible: true
-  minimumHeight: 720
-  minimumWidth: 1280
+  minimumHeight: 240
+  minimumWidth: 426
+  height: 720
+  width: 1280
 
   function getMaxHeightArg()
   {
@@ -45,6 +47,12 @@ KonvergoWindow
     {
       var aheight = (width * 9) / 16;
 
+      // handle underscale, 720 is the minimum scale of the webclient.
+      if (aheight < 720)
+      {
+        return aheight / 720;
+      }
+
       if (webMaxHeight == 0)
         return 1;