From: Jaroslav Kysela Date: Tue, 5 Apr 2016 20:13:33 +0000 (+0200) Subject: WEBUI: try to correctly resize window on expand event X-Git-Tag: v4.2.1~728 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc6b8cefda04e5c9c56fa903fc212b13f0afbc6f;p=thirdparty%2Ftvheadend.git WEBUI: try to correctly resize window on expand event --- diff --git a/src/webui/static/app/extensions.js b/src/webui/static/app/extensions.js index 3ea299b0e..012e28da4 100644 --- a/src/webui/static/app/extensions.js +++ b/src/webui/static/app/extensions.js @@ -1830,6 +1830,11 @@ Ext.ux.Window = Ext.extend(Ext.Window, { this.keepItVisible(false); }, + syncShadow : function() { + Ext.Window.superclass.syncShadow.apply(this, arguments); + this.keepItVisible(false); + }, + }); Ext.layout.Column2Layout = Ext.extend(Ext.layout.ColumnLayout, { diff --git a/src/webui/static/app/idnode.js b/src/webui/static/app/idnode.js index caa90b4bc..217243499 100644 --- a/src/webui/static/app/idnode.js +++ b/src/webui/static/app/idnode.js @@ -940,6 +940,9 @@ tvheadend.idnode_editor_form = function(uilevel, d, meta, panel, conf) listeners: { collapse: function() { panel.fireEvent('collapse'); + }, + expand: function() { + panel.fireEvent('expand'); } } }); @@ -1201,6 +1204,9 @@ tvheadend.idnode_editor = function(_uilevel, item, conf) listeners: { collapse: function() { shadow(); + }, + expand: function() { + shadow(); } } });