diff options
| author | Jeremy Kersten <jke@odoo.com> | 2020-10-16 15:45:01 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-10-19 14:44:20 +0000 |
| commit | 585aed8b49b98d014db1e06c11e42b0d38a0b8c6 (patch) | |
| tree | 1192992c2e4cfad115092b6e2d9b64ed5cb1e877 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 078308b25b9eb9a456daac28815dca8f40ed0c33 (diff) | |
[FIX] web_editor: fix width of SVG images in media dialog
This solves an issue with svg images from Isometric for example. The
media dialog assigns width to its displayed images thanks to the
flex-basis and flex-grow properties of their container, based on the
aspect ratio of each image. This was done correctly for SVG images too.
However, after assigning a nice space for a specific SVG image, the
image itself was not made to fill that assigned space... it only worked
if the natural width of the image was higher than the assigned space.
This was of course more obvious with SVG files with no intrinsic width
as they would simply not appear.
closes odoo/odoo#60193
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: qsm-odoo <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
