From 183c62451a13bf7adc25a27744711c8d21762b2c Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 4 Jun 2019 12:56:06 +0200 Subject: [PATCH] Elastic: Fix iframe height on iOS 9 --- skins/elastic/ui.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index a526cb1ec..d409715d6 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -1588,11 +1588,10 @@ function rcube_elastic_ui() screen_resize_logo(mode); screen_resize_headers(); -/* - // On iOS and Android the content frame height is never correct, fix it - // Actually I needed it for my iPad with iOS 9.3. We'll re-consider - // uncommenting that if we know more recent devices need it - if (bw.webkit) { + + // On iOS and Android the content frame height is never correct, fix it. + // Actually I observed the issue on my old iPad with iOS 9.3. + if (bw.webkit && bw.ipad && bw.agent.match(/OS 9/)) { $('.iframe-wrapper').each(function() { var h = $(this).height(); if (h) { @@ -1600,7 +1599,6 @@ function rcube_elastic_ui() } }); } -*/ }; /**