Use new composer method

This commit is contained in:
Toby Zerner 2016-03-07 22:22:06 +10:30
parent 98e7878539
commit b2e21f1dfc

View File

@ -53,7 +53,7 @@ app.initializers.replace('boot', () => {
};
extend(PostStream.prototype, 'goToNumber', function(promise, number) {
if (number === 'reply' && 'parentIFrame' in window && app.composer.$().css('position') === 'absolute') {
if (number === 'reply' && 'parentIFrame' in window && app.composer.isFullScreen()) {
const itemTop = this.$('.PostStream-item:last').offset().top;
window.parentIFrame.scrollToOffset(0, itemTop);
}