Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WEBUI JS: Improve layout for idnode_form_grid and idnode_tree
  • Loading branch information
perexg committed Sep 8, 2014
1 parent 755a5b0 commit 17a8c50
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/webui/static/app/idnode.js
Expand Up @@ -662,8 +662,7 @@ tvheadend.idnode_editor = function(item, conf)
labelWidth: conf.labelWidth || 200,
autoWidth: conf.noautoWidth ? false : true,
autoHeight: !conf.fixedHeight,
width: conf.width || 600,
//defaults: {width: 330},
width: conf.nowidth ? null : (conf.width || 600),
defaultType: 'textfield',
buttonAlign: 'left',
autoScroll: true,
Expand Down Expand Up @@ -1517,8 +1516,8 @@ tvheadend.idnode_form_grid = function(panel, conf)
help: conf.help || null,
inTabPanel: true,
noButtons: true,
noautoWidth: true,
width: 730
width: 730,
noautoWidth: true
});
current = {
uuid: d[0].id,
Expand All @@ -1535,7 +1534,9 @@ tvheadend.idnode_form_grid = function(panel, conf)

/* Grid Panel (Selector) */
var grid = new Ext.grid.GridPanel({
width: 200,
flex: 1,
autoWidth: true,
autoScroll: true,
stripeRows: true,
store: store,
cm: model,
Expand Down Expand Up @@ -1656,7 +1657,7 @@ tvheadend.idnode_tree = function(panel, conf)

tree = new Ext.tree.TreePanel({
loader: loader,
width: 550,
autoWidth: true,
flex: 1,
autoScroll: true,
border: false,
Expand All @@ -1674,7 +1675,7 @@ tvheadend.idnode_tree = function(panel, conf)
if (!n.isRoot)
current = mpanel.add(new tvheadend.idnode_editor(n.attributes, {
title: 'Parameters',
width: 550,
nowidth: true,
noautoWidth: true,
fixedHeight: true,
help: conf.help || null
Expand All @@ -1686,7 +1687,6 @@ tvheadend.idnode_tree = function(panel, conf)

var mpanel = new Ext.Panel({
layout: 'hbox',
flex: 1,
padding: 5,
border: false,
layoutConfig: {
Expand Down

0 comments on commit 17a8c50

Please sign in to comment.