From c3a3ba2ebeddb5b02a465b5db75164d6654f3165 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Fri, 16 Dec 2022 17:24:40 +0100 Subject: [PATCH] [TextLayer] Hide the text layer when it's created in order to avoid reflows (fix #15844) --- web/text_layer_builder.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/text_layer_builder.js b/web/text_layer_builder.js index 0f088ed62ec47..a9facd47b4025 100644 --- a/web/text_layer_builder.js +++ b/web/text_layer_builder.js @@ -59,6 +59,7 @@ class TextLayerBuilder { this.div = document.createElement("div"); this.div.className = "textLayer"; + this.hide(); } #finishRendering() {