FIX: Topic timeline placement on iPad

FIX: Topic timeline placement on iPad

diff --git a/app/assets/javascripts/discourse/components/topic-timeline.js.es6 b/app/assets/javascripts/discourse/components/topic-timeline.js.es6
index 12e9aef..17709a5 100644
--- a/app/assets/javascripts/discourse/components/topic-timeline.js.es6
+++ b/app/assets/javascripts/discourse/components/topic-timeline.js.es6
@@ -3,7 +3,14 @@ import Docking from "discourse/mixins/docking";
 import { observes } from "ember-addons/ember-computed-decorators";
 import optionalService from "discourse/lib/optional-service";
 
-const headerPadding = () => parseInt($("#main-outlet").css("padding-top")) + 3;
+const headerPadding = () => {
+  let topPadding = parseInt($("#main-outlet").css("padding-top")) + 3;
+  const iPadNavHeight = $(".footer-nav-ipad .footer-nav").height();
+  if (iPadNavHeight) {
+    topPadding += iPadNavHeight;
+  }
+  return topPadding;
+};
 
 export default MountWidget.extend(Docking, {
   adminTools: optionalService(),

GitHub sha: 1ee633ce