diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-01-21 15:20:06 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-01-23 12:14:15 +0100 |
| commit | c27930ccb67792f519a9bb3df667366a66cb8695 (patch) | |
| tree | d20a80babfa78b82b414b2d5fb9197a85b0f06c7 /addons/website/static/src/js/website.snippets.editor.js | |
| parent | 919a8159bc8789bd3c7a8a72b818da215e0ffd11 (diff) | |
[FIX] website editor: when resize widow the snippet overlay don't move with the container
Diffstat (limited to 'addons/website/static/src/js/website.snippets.editor.js')
| -rw-r--r-- | addons/website/static/src/js/website.snippets.editor.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index 077c380ba50..63ecd24bd51 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -134,6 +134,12 @@ $.summernote.core.dom.isNotBreakable = function (node, sc, so, ec, eo) { return _isNotBreakable(node, sc, so, ec, eo) || $(node).is('div') || website.snippet.globalSelector.is($(node)); }; + + $(window).on('resize', function () { + if (self.$active_snipped_id) { + self.cover_target(self.$active_snipped_id.data("snippet-editor").$overlay, self.$active_snipped_id); + } + }); }, show_blocks: function () { |
