mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
Merge "ve.ui.CodeMirrorAction.v6: Use direction of surface view, not model view"
This commit is contained in:
commit
6cfde8a849
|
@ -96,7 +96,7 @@ ve.ui.CodeMirrorAction.prototype.toggle = function ( enable ) {
|
||||||
surface.mirror.view.viewState.printing = true;
|
surface.mirror.view.viewState.printing = true;
|
||||||
|
|
||||||
// Account for the gutter width in the margin.
|
// Account for the gutter width in the margin.
|
||||||
action.updateGutterWidth( doc.getDir() );
|
action.updateGutterWidth( surfaceView.getDocument().getDir() );
|
||||||
|
|
||||||
// Set focus on the surface view.
|
// Set focus on the surface view.
|
||||||
surfaceView.focus();
|
surfaceView.focus();
|
||||||
|
|
Loading…
Reference in a new issue