3
0
Fork 0

web_tree_image_tooltip: add image width and height limit in tooltip

15.0-ocabot-merge-pr-2789-by-pedrobaeza-bump-patch
Donatas 2019-10-28 12:17:06 +00:00 committed by Christopher Ormaza
parent a0163fe228
commit 9a5a148cea
2 changed files with 6 additions and 1 deletions

View File

@ -11,7 +11,7 @@ odoo.define('web_tree_image_tooltip.web_tree_image_tooltip',
var img_src =
$(event.currentTarget).children('.img-fluid').attr('src')
$(event.currentTarget).tooltip({
title: "<img src="+img_src+" />",
title: "<img src="+img_src+" class='tooltip_image' />",
delay: 0,
}).tooltip('show');
}

View File

@ -1,3 +1,8 @@
.o_image_cell .o_field_image img{
width:30px;
}
.tooltip_image {
max-width:80vw;
max-height:80vh;
}