Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WEBUI: Fix the DVR config column layout
  • Loading branch information
perexg committed Nov 26, 2015
1 parent f6ac3c8 commit 3346bcb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions src/webui/static/app/extensions.js
Expand Up @@ -1830,3 +1830,19 @@ Ext.ux.Window = Ext.extend(Ext.Window, {
},

});

// create namespace
Ext.ns('Ext.ux');

Ext.layout.Column2Layout = Ext.extend(Ext.layout.ColumnLayout, {

getLayoutTargetSize : function() {
var ret = Ext.layout.ColumnLayout.prototype.getLayoutTargetSize.call(this);
if (ret && ret.width > 20)
ret.width -= 20;
return ret;
}

});

Ext.Container.LAYOUTS['column2'] = Ext.layout.Column2Layout;
2 changes: 1 addition & 1 deletion src/webui/static/app/idnode.js
Expand Up @@ -850,7 +850,7 @@ tvheadend.idnode_editor_form = function(d, meta, panel, conf)
columns = met[k].column;
met[number].columns = columns;
if (columns) {
var p = newFieldSet({ title: m.name || _("Settings"), layout: 'column', border: false });
var p = newFieldSet({ title: m.name || _("Settings"), layout: 'column2', border: false });
cfs[number] = newFieldSet({ nocollapse: true, style: 'border-width: 0px', bodyStyle: ' ' });
p.add(cfs[number]);
fs[number] = p;
Expand Down

0 comments on commit 3346bcb

Please sign in to comment.