mirror of
https://github.com/flarum/core.git
synced 2025-07-29 20:50:28 +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) {
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user