]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
WEBUI: Fix the DVR config column layout
authorJaroslav Kysela <perex@perex.cz>
Thu, 26 Nov 2015 08:15:29 +0000 (09:15 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 26 Nov 2015 08:15:29 +0000 (09:15 +0100)
src/webui/static/app/extensions.js
src/webui/static/app/idnode.js

index ef4f5b4cacdc3826b26009cb3e046d3e64a878ff..8d6ccea480567a817fb3cc223bcdaf1159fb2e56 100644 (file)
@@ -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;
index 47396c765490ce97a9651a9438c31fe39bdb861f..e54958a79bf52e550d170e3a9518887620a81a4f 100644 (file)
@@ -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;