openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #06686
[Bug 753313] [NEW] many2one field contextmenu postion
Jay Vora (OpenERP) (jvo-openerp) has assigned this bug to you for OpenERP Web Client:
web client 6.0.2
form view many2one field, to open resource contextmenu's position error.
I found the bug is the "#contextmenu" offset value error.
@/addons/openerp/static/javascript/form.js
<pre>
......
var $menu = jQuery('#contextmenu');
$menu.empty().append(
jQuery('<table cellpadding="0" cellspacing="0">').append($tbody));
var menu_width = $menu.width();
var body_width = jQuery(document.body).width();
if (parseInt($menu.css("left")) + menu_width > body_width) {
$menu.offset({ left: body_width - menu_width - 10 });
}
showContextMenu();
......
</pre>
the $menu.offset method parameter's value error.
just fixed it like:
$menu.offset({ left: (body_width - menu_width - 10)+'px' });
** Affects: openobject-client-web
Importance: Low
Assignee: OpenERP SA's Web Client R&D (openerp-dev-web)
Status: Confirmed
** Tags: contextmenu jquery mrshelly offset position
--
many2one field contextmenu postion
https://bugs.launchpad.net/bugs/753313
You received this bug notification because you are a member of OpenERP SA's Web Client R&D, which is a bug assignee.