From 8b3c3bcfcf5b4645cd99752d6fb3cd0cc4b0c925 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 22 Dec 2017 14:29:22 +0100 Subject: [PATCH] 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). --- src/text-editor-component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text-editor-component.js b/src/text-editor-component.js index 8032ba939..257656552 100644 --- a/src/text-editor-component.js +++ b/src/text-editor-component.js @@ -3023,7 +3023,7 @@ class DummyScrollbarComponent { const outerStyle = { position: 'absolute', - contain: 'strict', + contain: 'content', zIndex: 1, willChange: 'transform' }