summaryrefslogtreecommitdiff
path: root/odoo
diff options
context:
space:
mode:
authorSamuel Degueldre <sad@odoo.com>2020-08-20 10:09:30 +0000
committerqsm-odoo <qsm@odoo.com>2020-08-22 07:59:59 +0000
commit809fefbe81bc6e19f7da8fec24f079fb02f11edb (patch)
tree00a5780913bb5a5cea00ebe6979a08035fa7932d /odoo
parent6d52f3646c7cf389ce76445cd16aa570f90e07e0 (diff)
[FIX] web_editor: fix small gaps between shapes and their environments
Because of the way browsers render SVGs as background images, background SVGs will sometimes not perfectly hug the top or bottom of their containers because of rounding in the calculation of the width from the height, or height from the width. This commit fixes a number of the shapes displaying this behaviour, by making their viewbox a perfect square, this means that whenever the width or height of the SVG is determined by the brower, it will use the same number for the height or width respectively because the aspect ratio is exactly one, rather than using the closest integer approximation of the aspect ratio, which causes those artifacts. task-2319484 closes odoo/odoo#56200 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'odoo')
0 files changed, 0 insertions, 0 deletions