mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 04:31:57 +08:00
Don't pad the body when the composer is positioned absolutely (on mobile)
This commit is contained in:
parent
599958354c
commit
7eab206f91
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user