Simplify composer animation

This commit is contained in:
Toby Zerner 2015-06-18 12:53:19 +09:30
parent 6db3bd9178
commit 2786dbd157

View File

@ -168,7 +168,7 @@ class Composer extends Component {
if (this.position() !== Composer.PositionEnum.FULLSCREEN) { if (this.position() !== Composer.PositionEnum.FULLSCREEN) {
this.updateBodyPadding(); this.updateBodyPadding();
$('html, body').scrollTop(anchorToBottom ? $(document).height() : scrollTop); $('html, body').scrollTop(scrollTop);
} else { } else {
this.component.focus(); this.component.focus();
} }