mirror of
https://github.com/atom/atom.git
synced 2026-02-16 17:45:24 -05:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user