From 7b0817900e75e4be70d32eefeb6d4b492567a9c8 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Mon, 23 Nov 2015 10:07:23 +1030 Subject: [PATCH] Don't pad the body when the composer is positioned absolutely (on mobile) --- framework/core/js/forum/src/components/Composer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/core/js/forum/src/components/Composer.js b/framework/core/js/forum/src/components/Composer.js index d0cbed504..985bd87ed 100644 --- a/framework/core/js/forum/src/components/Composer.js +++ b/framework/core/js/forum/src/components/Composer.js @@ -237,7 +237,8 @@ class Composer extends Component { */ updateBodyPadding() { const visible = this.position !== Composer.PositionEnum.HIDDEN && - this.position !== Composer.PositionEnum.MINIMIZED; + this.position !== Composer.PositionEnum.MINIMIZED && + this.$().css('position') !== 'absolute'; const paddingBottom = visible ? this.computedHeight() - parseInt($('#app').css('padding-bottom'), 10)