Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WEBUI: try to correctly resize window on expand event
  • Loading branch information
perexg committed Apr 5, 2016
1 parent 051a031 commit fc6b8ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/webui/static/app/extensions.js
Expand Up @@ -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, {
Expand Down
6 changes: 6 additions & 0 deletions src/webui/static/app/idnode.js
Expand Up @@ -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');
}
}
});
Expand Down Expand Up @@ -1201,6 +1204,9 @@ tvheadend.idnode_editor = function(_uilevel, item, conf)
listeners: {
collapse: function() {
shadow();
},
expand: function() {
shadow();
}
}
});
Expand Down

0 comments on commit fc6b8ce

Please sign in to comment.