From 7eab206f91850468002307eb9056cfdf86c0e196 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) --- js/forum/src/components/Composer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/forum/src/components/Composer.js b/js/forum/src/components/Composer.js index d0cbed504..985bd87ed 100644 --- a/js/forum/src/components/Composer.js +++ b/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)