From 8542152c091bba3a42b1dfc4a8e0ac7c7acdbb81 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 12 Jun 2015 16:37:19 +0930 Subject: [PATCH] Don't pad the body when the composer is minimized --- framework/core/js/forum/src/components/composer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/core/js/forum/src/components/composer.js b/framework/core/js/forum/src/components/composer.js index fbd2aa8c9..720c24d6e 100644 --- a/framework/core/js/forum/src/components/composer.js +++ b/framework/core/js/forum/src/components/composer.js @@ -183,7 +183,9 @@ class Composer extends Component { // content will still be visible above the composer when the page is // scrolled right to the bottom. updateBodyPadding(anchorToBottom) { - var paddingBottom = this.position() !== Composer.PositionEnum.HIDDEN ? this.computedHeight() - parseInt($('#page').css('padding-bottom')) : 0; + var paddingBottom = this.position() !== Composer.PositionEnum.HIDDEN && this.position() !== Composer.PositionEnum.MINIMIZED + ? this.computedHeight() - parseInt($('#page').css('padding-bottom')) + : 0; $('#content').css({paddingBottom}); if (anchorToBottom) {