mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 05:52:49 +08:00
Use new composer method
This commit is contained in:
parent
98e7878539
commit
b2e21f1dfc
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user