diff options
| author | Simon Lejeune <sle@openerp.com> | 2016-04-18 12:23:39 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2016-04-18 14:43:50 +0200 |
| commit | f992c8ee192c075b38bf14dd5dcfb10fba7dd2ef (patch) | |
| tree | 7a2d71771738a9b3fcdfd047f0be591d3d797df9 /addons/web/static/src/js/chrome.js | |
| parent | e1a99192bda1019a50be879cb0baaa72d447956a (diff) | |
[FIX] web: fix layout issue in Chrome 50
A 100% height is not distributed anymore to the children of a table-row
if they are not themselves table-cell in Chrome 50. This breaks the
indenpendent scrolling of the menu and the view manager.
However, setting the `table-cell` display breaks the layout in Internet
Explorer.
When the webclient is loaded by Chrome 50, we load a stylesheet
forcing a `table-cell` for display.
Seems to be related to https://bugs.chromium.org/p/chromium/issues/detail?id=353580
and https://chromium.googlesource.com/chromium/src.git/+/8876584335b48c99cf8df552ef4d8efebb131041
Related to e1a99192bda1019a50be879cb0baaa72d447956a
Fixes #11629
Diffstat (limited to 'addons/web/static/src/js/chrome.js')
| -rw-r--r-- | addons/web/static/src/js/chrome.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 83c2ea63dae..34a9f15cb00 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -1292,6 +1292,14 @@ instance.web.WebClient = instance.web.Client.extend({ self.action_manager.do_action(self.client_options.action_post_login); delete(self.client_options.action_post_login); } + + /* Do not forward port! */ + if ($.browser.chrome) { + var chrome_version = $.browser.version.split('.')[0]; + if (parseInt(chrome_version, 10) >= 50) { + openerp.loadCSS('/web/static/src/css/chrome50.css'); + } + } }, update_logo: function() { var company = this.session.company_id; |
