mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-23 18:38:18 +00:00
Merge "Always scroll "Loading..." text into view"
This commit is contained in:
commit
5a5ad9f8df
|
@ -184,6 +184,13 @@ CommentController.prototype.setup = function ( mode, hideErrors, suppressNotific
|
|||
// we wrap this loading message in another element.
|
||||
$( '<span>' ).text( mw.msg( 'discussiontools-replywidget-loading' ) )
|
||||
);
|
||||
var scrollPaddingCollapsed = OO.copy( scrollPadding );
|
||||
// We don't know exactly how tall the widge will be, but leave room for one line
|
||||
// of preview in source mode (~270px). Visual mode is ~250px.
|
||||
scrollPaddingCollapsed.bottom += 270;
|
||||
OO.ui.Element.static.scrollIntoView( commentController.newListItem, {
|
||||
padding: scrollPaddingCollapsed
|
||||
} );
|
||||
}
|
||||
|
||||
if (
|
||||
|
|
Loading…
Reference in a new issue