Don't pad the body when the composer is minimized

This commit is contained in:
Toby Zerner 2015-06-12 16:37:19 +09:30
parent 65df4c3a33
commit 8542152c09

View File

@ -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) {