mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Merge "'scrollCursorIntoView' -> 'scrollSelectionIntoView'"
This commit is contained in:
commit
a5724f8fe5
|
@ -305,7 +305,7 @@ ve.init.mw.MobileArticleTarget.prototype.adjustContentPadding = function () {
|
|||
surfaceView.$attachedRootNode.css( 'padding-top', toolbarHeight );
|
||||
surface.$placeholder.css( 'padding-top', toolbarHeight );
|
||||
surfaceView.emit( 'position' );
|
||||
surface.scrollCursorIntoView();
|
||||
surface.scrollSelectionIntoView();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -83,7 +83,7 @@ ve.ui.MWWikitextSurface = function VeUiMWWikitextSurface() {
|
|||
},
|
||||
// encapsulateSelection works automatically when we implement the overrides above
|
||||
scrollToCaretPosition: function () {
|
||||
surface.scrollCursorIntoView();
|
||||
surface.scrollSelectionIntoView();
|
||||
return this;
|
||||
}
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue