mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 17:22:46 +08:00
Don't pad the body when the composer is positioned absolutely (on mobile)
This commit is contained in:
parent
11560342a2
commit
7b0817900e
|
@ -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…
Reference in New Issue
Block a user