summaryrefslogtreecommitdiff
path: root/odoo/cli/shell.py
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2018-01-30 15:01:39 +0100
committerNicolas Lempereur <nle@odoo.com>2018-02-01 11:40:42 +0100
commit2014fabfbaf2e24a047881deb404844a81c7bbc1 (patch)
treebc46c4956790b49c52fffec3617970692ebe42fe /odoo/cli/shell.py
parentcbaecc5cbb82ea847a22cb3efbdbbfe9b18849ed (diff)
[FIX] web_editor: firefox editor hidden mass mail
When saving a modified mass mailing, the editor will do a number of things to improve the mail readability accross mail client. One of those is replacing font awesome icons by image, but firefox acts differently than other browser. On a display:none iframe, doing .css('color') or .height() on an element returns respectively `undefined` and 0. This caused an error when getting the color that we could solve by doing a fallback for firefox like this: window.parent.getComputedStyle($font[0]).color But to get the height() of an element, it seems we always need the iframe displayed. With this change, when the iframe is hidden and the browser is firefox, the code try to display the iframe (with "visibility:hidden;height:1px") when this part of the code happen. note: backport of 10.0 13c326caaa opw-807180 closes #22701
Diffstat (limited to 'odoo/cli/shell.py')
0 files changed, 0 insertions, 0 deletions