Move placeholder text inside .lines div

If themes apply padding to the .lines div, the placeholder text looks
mis-aligned unless it is placed within the .lines div
This commit is contained in:
Nathan Sobo
2017-08-15 15:38:04 -06:00
parent 586b818bae
commit c9b558a08a

View File

@@ -551,8 +551,7 @@ class TextEditorComponent {
children = [
this.renderLineTiles(),
this.renderBlockDecorationMeasurementArea(),
this.renderCharacterMeasurementLine(),
this.renderPlaceholderText()
this.renderCharacterMeasurementLine()
]
} else {
children = [
@@ -633,6 +632,7 @@ class TextEditorComponent {
style.height = this.getScrollHeight() + 'px'
}
children.push(this.renderPlaceholderText())
children.push(this.renderCursorsAndInput())
return $.div(