summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-08-07 13:59:40 +0200
committerChristophe Simonis <chs@odoo.com>2018-08-07 13:59:40 +0200
commit33e7479865763e8c8255db7e057ef4703bef6093 (patch)
treeb0e61b23b900f1602497b9f33d59ec931f6cde12 /addons/web_editor/static/src
parentff80efd71ea470cf56a91e62f674d2959b9aacd0 (diff)
parentd7e2c767ce51ddf112babc5507105da4dc127279 (diff)
[MERGE] forward port branch saas-11.2 up to d7e2c767ce5
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/js/editor/transcoder.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/editor/transcoder.js b/addons/web_editor/static/src/js/editor/transcoder.js
index 84fe3cf8c93..30d1b73cc30 100644
--- a/addons/web_editor/static/src/js/editor/transcoder.js
+++ b/addons/web_editor/static/src/js/editor/transcoder.js
@@ -248,6 +248,10 @@ function applyOverDescendants(node, func) {
func(node);
applyOverDescendants(node, func);
}
+ var $node = $(node);
+ if (node.nodeName === 'A' && $node.hasClass('btn') && !$node.children().length && $(node).parents('.o_outlook_hack').length) {
+ node = $(node).parents('.o_outlook_hack')[0];
+ }
node = node.nextSibling;
}
}
@@ -283,7 +287,7 @@ function classToStyle($editable) {
// Outlook
if (node.nodeName === 'A' && $target.hasClass('btn') && !$target.hasClass('btn-link') && !$target.children().length) {
- var $hack = $('<table class="o_outlook_hack" style="display: inline-table;"><tr><td></td></tr></table>');
+ var $hack = $('<table class="o_outlook_hack" style="display: inline-table;vertical-align:middle"><tr><td></td></tr></table>');
$hack.find('td')
.attr('height', $target.outerHeight())
.css({