1
0
mirror of https://github.com/flarum/core.git synced 2025-07-22 17:21:27 +02:00

Don't pad the body when the composer is positioned absolutely (on mobile)

This commit is contained in:
Toby Zerner
2015-11-23 10:07:23 +10:30
parent 11560342a2
commit 7b0817900e

View File

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