Set lineHeightInPixels on model for backward compatibility

This commit is contained in:
Nathan Sobo
2017-04-17 09:17:46 -06:00
committed by Antonio Scandurra
parent 174bac378d
commit 0441625fba

View File

@@ -1771,6 +1771,7 @@ class TextEditorComponent {
this.measurements.halfWidthCharacterWidth = this.refs.halfWidthCharacterSpan.getBoundingClientRect().width
this.measurements.koreanCharacterWidth = this.refs.koreanCharacterSpan.getBoundingClientRect().width
this.props.model.setLineHeightInPixels(this.measurements.lineHeight)
this.props.model.setDefaultCharWidth(
this.measurements.baseCharacterWidth,
this.measurements.doubleWidthCharacterWidth,