From: pablozg Date: Fri, 8 Jun 2018 10:36:06 +0000 (+0200) Subject: webui: dvr/epg popup window autoresize to actual resolution X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c03712e8473bca4def46015a7593ac637dba3db0;p=thirdparty%2Ftvheadend.git webui: dvr/epg popup window autoresize to actual resolution --- diff --git a/src/webui/static/app/dvr.js b/src/webui/static/app/dvr.js index 28054900c..6eeae81e9 100644 --- a/src/webui/static/app/dvr.js +++ b/src/webui/static/app/dvr.js @@ -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, diff --git a/src/webui/static/app/epg.js b/src/webui/static/app/epg.js index 67e66651f..0a3f5afc1 100644 --- a/src/webui/static/app/epg.js +++ b/src/webui/static/app/epg.js @@ -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',