From fc6b8cefda04e5c9c56fa903fc212b13f0afbc6f Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 5 Apr 2016 22:13:33 +0200 Subject: [PATCH] WEBUI: try to correctly resize window on expand event --- src/webui/static/app/extensions.js | 5 +++++ src/webui/static/app/idnode.js | 6 ++++++ 2 files changed, 11 insertions(+) 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(); } } }); -- 2.47.3