From c03712e8473bca4def46015a7593ac637dba3db0 Mon Sep 17 00:00:00 2001 From: pablozg Date: Fri, 8 Jun 2018 12:36:06 +0200 Subject: [PATCH] webui: dvr/epg popup window autoresize to actual resolution --- src/webui/static/app/dvr.js | 4 +++- src/webui/static/app/epg.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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', -- 2.47.2