From baed408025a5c4dedf1eac52d2cf78063da78e71 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 6 Sep 2011 11:47:31 +0200 Subject: [PATCH] [IMP] make legacy dashboard map onto a 2-1 layout by default, rather than 1-1 Since 'legacy' dashboards generally have just small graphs on the right-hand side, give then a third of the dashboard and give the lists (left-hand side) two thirds bzr revid: xmo@openerp.com-20110906094731-u3z0l1iz25el0r4m --- addons/web_dashboard/static/src/js/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_dashboard/static/src/js/dashboard.js b/addons/web_dashboard/static/src/js/dashboard.js index 1d7701848a1..855cd785a3e 100644 --- a/addons/web_dashboard/static/src/js/dashboard.js +++ b/addons/web_dashboard/static/src/js/dashboard.js @@ -253,7 +253,7 @@ openerp.web.form.DashBoard = openerp.web.form.Widget.extend({ openerp.web.form.DashBoardLegacy = openerp.web.form.DashBoard.extend({ render: function() { if (this.node.tag == 'hpaned') { - this.node.attrs.style = '1-1'; + this.node.attrs.style = '2-1'; } else if (this.node.tag == 'vpaned') { this.node.attrs.style = '1'; }