mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Set lineHeightInPixels on model for backward compatibility
This commit is contained in:
committed by
Antonio Scandurra
parent
174bac378d
commit
0441625fba
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user