mirror of
https://github.com/flarum/core.git
synced 2025-07-30 05:00:56 +02:00
Use new composer method
This commit is contained in:
@@ -53,7 +53,7 @@ app.initializers.replace('boot', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
extend(PostStream.prototype, 'goToNumber', function(promise, number) {
|
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;
|
const itemTop = this.$('.PostStream-item:last').offset().top;
|
||||||
window.parentIFrame.scrollToOffset(0, itemTop);
|
window.parentIFrame.scrollToOffset(0, itemTop);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user