mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 07:03:35 +08:00
Don't pad the body when the composer is minimized
This commit is contained in:
parent
65df4c3a33
commit
8542152c09
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user