Loosen containment rules on dummy scrollbar elements

This commit uses `content` containment (i.e. `layout paint style`) as
opposed to `strict` containment (i.e. `layout paint style size`) for
dummy scrollbar elements.

By removing `size` containment we are fixing a rendering bug that was
preventing the scrollbar from being sized correctly. This problem was
caught by a TextEditorComponent test
(https://circleci.com/gh/atom/atom/6393).
This commit is contained in:
Antonio Scandurra
2017-12-22 14:29:22 +01:00
parent 645252e0c2
commit 8b3c3bcfcf

View File

@@ -3023,7 +3023,7 @@ class DummyScrollbarComponent {
const outerStyle = {
position: 'absolute',
contain: 'strict',
contain: 'content',
zIndex: 1,
willChange: 'transform'
}