Merge "'scrollCursorIntoView' -> 'scrollSelectionIntoView'"

This commit is contained in:
jenkins-bot 2019-05-24 16:40:32 +00:00 committed by Gerrit Code Review
commit a5724f8fe5
2 changed files with 2 additions and 2 deletions

View file

@ -305,7 +305,7 @@ ve.init.mw.MobileArticleTarget.prototype.adjustContentPadding = function () {
surfaceView.$attachedRootNode.css( 'padding-top', toolbarHeight ); surfaceView.$attachedRootNode.css( 'padding-top', toolbarHeight );
surface.$placeholder.css( 'padding-top', toolbarHeight ); surface.$placeholder.css( 'padding-top', toolbarHeight );
surfaceView.emit( 'position' ); surfaceView.emit( 'position' );
surface.scrollCursorIntoView(); surface.scrollSelectionIntoView();
}; };
/** /**

View file

@ -83,7 +83,7 @@ ve.ui.MWWikitextSurface = function VeUiMWWikitextSurface() {
}, },
// encapsulateSelection works automatically when we implement the overrides above // encapsulateSelection works automatically when we implement the overrides above
scrollToCaretPosition: function () { scrollToCaretPosition: function () {
surface.scrollCursorIntoView(); surface.scrollSelectionIntoView();
return this; return this;
} }
} ); } );