From 527c9158eb4eab6bd25a248a3da6012367573d29 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 17 Sep 2015 13:19:08 +1000 Subject: [PATCH] we must hide the header for iPad --- app/assets/javascripts/discourse/lib/safari-hacks.js.es6 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/lib/safari-hacks.js.es6 b/app/assets/javascripts/discourse/lib/safari-hacks.js.es6 index f549bc39ccd..e080f32ad55 100644 --- a/app/assets/javascripts/discourse/lib/safari-hacks.js.es6 +++ b/app/assets/javascripts/discourse/lib/safari-hacks.js.es6 @@ -25,6 +25,7 @@ function positioningWorkaround($fixedElement) { fixedElement.parentElement.style.height = ''; $('#main-outlet').show(); + $('header').show(); fixedElement.style.position = ''; fixedElement.style.top = ''; @@ -58,6 +59,7 @@ function positioningWorkaround($fixedElement) { // take care of body $('#main-outlet').hide(); + $('header').hide(); fixedElement.style.position = 'absolute'; // get out of the way while opening keyboard