From c69f306b5d5b90e753b73116c4abd1eaf322c601 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 30 Aug 2016 10:04:14 +0200 Subject: [FIX] web_editor: correctly display image and focus point in bg option dialog Before this commit, the focus point the user can move on the image in the background position configuration dialog was only following the mouse as we want if the image original width was larger than the dialog one. This is because the javascript relies on the fact the image takes 100% width of its container. To fix this, the container now does not take 100% of modal width but the size of its internal image (with a max-width of 100%). --- addons/web_editor/static/src/less/web_editor.ui.components.less | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'addons/web_editor/static/src/less/web_editor.ui.components.less') diff --git a/addons/web_editor/static/src/less/web_editor.ui.components.less b/addons/web_editor/static/src/less/web_editor.ui.components.less index 6cf994e2f03..a21d63fe642 100644 --- a/addons/web_editor/static/src/less/web_editor.ui.components.less +++ b/addons/web_editor/static/src/less/web_editor.ui.components.less @@ -243,7 +243,8 @@ body .modal { font-weight: bold; } .o_bg_img_opt_object { - width: 100%; + display: inline-block; + max-width: 100%; background: white; min-height: 10px; position: relative; -- cgit v1.2.3