From ca454bcf943050dc11ccbc9d617644985340ac1d Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Wed, 9 Jan 2013 17:46:26 +0100 Subject: [PATCH] [FIX] html widget: fix cleditor width when the field was invisible before becoming editable lp bug: https://launchpad.net/bugs/1097638 fixed bzr revid: odo@openerp.com-20130109164626-1a16vqmwc366n0xf --- addons/web/static/lib/cleditor/jquery.cleditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/lib/cleditor/jquery.cleditor.js b/addons/web/static/lib/cleditor/jquery.cleditor.js index f70cc8b..e344699 100644 --- a/addons/web/static/lib/cleditor/jquery.cleditor.js +++ b/addons/web/static/lib/cleditor/jquery.cleditor.js @@ -894,7 +894,7 @@ var $toolbar = editor.$toolbar, $group = $toolbar.children("div:last"), - wid = $main.width(); + wid = /%/.test("" + options.width) ? options.width : $main.width(); // Resize the toolbar var hgt = $group.offset().top + $group.outerHeight() - $toolbar.offset().top + 1; -- 1.7.10.4