FIX: Topic timeline placement on iPad

This commit is contained in:
Penar Musaraj 2019-10-08 16:10:09 -04:00
parent bee000bcec
commit 1ee633cea4
1 changed files with 8 additions and 1 deletions

View File

@ -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(),