summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2017-10-19 12:45:47 +0200
committerNicolas Lempereur <nle@odoo.com>2017-10-19 14:33:30 +0200
commitc57fb01a3e779cd292152bf5e4c894bf7bcd1f41 (patch)
tree203c00a0abf32a327d04dda73880769635c76936 /addons/web/static/src
parente72fc9a7f370d3e0fa6bd26c9b9e9c4608786c97 (diff)
[FIX] web: iOS content in modal disappear
As can be seen in https://github.com/scottjehl/Device-Bugs/issues/8 a combination of "-webkit-overflow-scrolling:touch", "position:relative" and "overflow:auto" can have unexpected behavior on iOS. The issue solved here is that writing in a form view inside a modal in iOS (at least version 10.3) would make the whole form body invisible until edition is ended. This commit fixes this by adding a CSS rule which avoid the iOS bug. opw-774396 closes #20314
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/less/modal.less2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/static/src/less/modal.less b/addons/web/static/src/less/modal.less
index bca950796fc..ec12c47381c 100644
--- a/addons/web/static/src/less/modal.less
+++ b/addons/web/static/src/less/modal.less
@@ -52,6 +52,8 @@
.modal-body {
overflow: auto;
+ // fix iOS issue https://github.com/scottjehl/Device-Bugs/issues/8
+ -webkit-transform: translate3d(0, 0, 0);
}
}
}