mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 13:56:44 +00:00
ve.ui.CodeMirror.v6: use view's direction when updating gutter width
I74bcbc46b0 erroneously passed the model's directionality (how it is saved) and not the view. This caused misalignment issues when changing directionality. Bug: T374196 Follow-Up: I74bcbc46b0b62ff2ed138fe57d852a3cd87c22d0 Change-Id: I81e863e19d6d0bad2cc2be743df896e17a8dc548
This commit is contained in:
parent
e87db823f3
commit
2f4c265ba9
|
@ -240,7 +240,7 @@ ve.ui.CodeMirrorAction.prototype.onDocumentPrecommit = function ( tx ) {
|
|||
this.surface.mirror.view.dispatch( { changes: replacements[ i ] } );
|
||||
}
|
||||
|
||||
action.updateGutterWidth( this.surface.getModel().getDocument().getDir() );
|
||||
action.updateGutterWidth( this.surface.getView().getDocument().getDir() );
|
||||
};
|
||||
|
||||
/* Registration */
|
||||
|
|
Loading…
Reference in a new issue