mirror of
https://github.com/atom/atom.git
synced 2026-02-17 01:51:54 -05:00
Prevent block decorations from mistakenly wrapping during measurements
Before rendering block decorations, we read their heights by putting them into a special div called `blockDecorationMeasurementsArea`. Previously, this div was not explicitly sized, which was causing decorations to wrap while being measured but not when actually rendering them. This commit fixes this inconsistency by explicitly styling the measurement area so that it has the same width as the component scroll width.
This commit is contained in:
@@ -678,7 +678,8 @@ class TextEditorComponent {
|
||||
style: {
|
||||
contain: 'strict',
|
||||
position: 'absolute',
|
||||
visibility: 'hidden'
|
||||
visibility: 'hidden',
|
||||
width: this.getScrollWidth() + 'px'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user