]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: dvr/epg popup window autoresize to actual resolution
authorpablozg <pablozg@gmail.com>
Fri, 8 Jun 2018 10:36:06 +0000 (12:36 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 3 Sep 2018 14:07:16 +0000 (16:07 +0200)
src/webui/static/app/dvr.js
src/webui/static/app/epg.js

index 28054900c81fad70f32f6d07feb3ec4660806301..6eeae81e9f0e4eff4fdaa60ac00b1cb06e381275 100644 (file)
@@ -140,12 +140,14 @@ tvheadend.dvrDetails = function(uuid) {
                         encodeURIComponent(title)+'&searchseriesid=&tab=listseries&function=Search','_blank');
         }
 
+        var windowHeight = Ext.getBody().getViewSize().height - 150;
+
         var win = new Ext.Window({
             title: title,
             iconCls: 'info',
             layout: 'fit',
             width: 650,
-            height: 450,
+            height: windowHeight,
             constrainHeader: true,
             buttonAlign: 'center',
             buttons: buttons,
index 67e66651f4ffe5876e83ad22a21deb3430562876..0a3f5afc16036194af11359499458e3d7d0cec00 100644 (file)
@@ -304,12 +304,14 @@ tvheadend.epgDetails = function(event) {
 
     }
 
+    var windowHeight = Ext.getBody().getViewSize().height - 150;
+
     var win = new Ext.Window({
         title: _('Broadcast Details'),
         iconCls: 'broadcast_details',
         layout: 'fit',
         width: 675,
-        height: 450,
+        height: windowHeight,
         constrainHeader: true,
         buttons: buttons,
         buttonAlign: 'center',