diff options
| author | Christophe Simonis <chs@odoo.com> | 2014-10-29 19:45:09 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2014-10-29 19:45:09 +0100 |
| commit | cf23a5dedaec67a3c34f6e4c3829f17fe8a054d0 (patch) | |
| tree | fc0bbda4aeb9d5b70e42c76386e484c22d26cd6f /addons/website/static/src/js/website.snippets.editor.js | |
| parent | 8481fab1b1b3762f73ba5b472e12b702680144c2 (diff) | |
| parent | 92c7874eb8f4cf14c04d4d7b50853d56aef30436 (diff) | |
[MERGE] forward port of branch 8.0 up to 92c7874
Diffstat (limited to 'addons/website/static/src/js/website.snippets.editor.js')
| -rw-r--r-- | addons/website/static/src/js/website.snippets.editor.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index 6147ada2ea3..90fbf3a4ce3 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -1472,10 +1472,11 @@ this.$target.transfo({ hide: true, callback: function () { - var pos = $(this).data("transfo").$center.offset(); + var center = $(this).data("transfo").$markup.find('.transfo-scaler-mc').offset(); + var $option = self.$overlay.find('.btn-group:first'); self.$overlay.css({ - 'top': pos.top, - 'left': pos.left, + 'top': center.top - $option.height()/2, + 'left': center.left, 'position': 'absolute', }); self.$overlay.find(".oe_overlay_options").attr("style", "width:0; left:0!important; top:0;"); |
