Skip to content
Snippets Groups Projects
user avatar
hpr-odoo authored
Currently when zoom slowly from right to left on employee image it
will not zoom the image.

currently to hide the zoom image we used target.width() and the method width
gives the width of the selected element (excluding padding, border
and margin) so due to border excluded it will hide the zooming image.
Aslo the offsetHeight property returns the viewable height of an
element in pixels, including padding, border and scrollbar, but not
the margin.

The reason why the 'viewable' word is specified, is because if the
element's content is taller than the actual height of the element,
this property will only return the height that is visible.

so instead of method width we used method outerWidth which gives
width of the selected element (including padding and border, excluding
margin).

closes odoo/odoo#46619

Co-authered-by: default avatarMahendra Barad <mba@odoo.com>
Task: 2199218
Closes: #46619
Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
5398aca0
History
Name Last commit Last update