Make the invoker responsible for positioning the composer cursor

This commit is contained in:
Toby Zerner
2015-05-23 08:34:54 +09:30
parent 9d7be35837
commit c4614788c6
2 changed files with 2 additions and 6 deletions

View File

@ -133,7 +133,7 @@ class Composer extends Component {
}
render(anchorToBottom) {
if (this.position() === this.oldPosition) { return; }
if (this.position() === this.oldPosition) { this.component.focus(); return; }
var $composer = this.$().stop(true);
var oldHeight = $composer.is(':visible') ? $composer.outerHeight() : 0;