]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
WEBUI: try to correctly resize window on expand event
authorJaroslav Kysela <perex@perex.cz>
Tue, 5 Apr 2016 20:13:33 +0000 (22:13 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 5 Apr 2016 20:13:33 +0000 (22:13 +0200)
src/webui/static/app/extensions.js
src/webui/static/app/idnode.js

index 3ea299b0ed583acec792ab35b78f3137e7af9f85..012e28da40f7533c7b5e78a2b1bbd082ee23f3a8 100644 (file)
@@ -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, {
index caa90b4bc8f76058df32fc8c1039dde6d3b04ef1..217243499e2ab873b1a775dbc2191755b857d28a 100644 (file)
@@ -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();
             }
         }
     });