From 62f757da2cdeb4b168ff1bf04e9def619746aa41 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 23 Dec 2013 16:18:00 -0500 Subject: [PATCH] FIX: iOS height was incorrect when zoomed for cloaking --- vendor/assets/javascripts/ember-cloaking.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/assets/javascripts/ember-cloaking.js b/vendor/assets/javascripts/ember-cloaking.js index 53de495061f..517b8d48d31 100644 --- a/vendor/assets/javascripts/ember-cloaking.js +++ b/vendor/assets/javascripts/ember-cloaking.js @@ -91,7 +91,7 @@ var toUncloak = [], $w = $(window), - windowHeight = $w.height(), + windowHeight = window.innerHeight ? window.innerHeight : $w.height(), windowTop = $w.scrollTop(), slack = Math.round(windowHeight * this.get('slackRatio')), viewportTop = windowTop - slack,