Skip to content

Commit

Permalink
Merge pull request #15845 from calixteman/15844
Browse files Browse the repository at this point in the history
[TextLayer] Hide the text layer when it's created in order to avoid reflows (fix #15844)
  • Loading branch information
calixteman authored Dec 16, 2022
2 parents 18eb1a0 + c3a3ba2 commit ee7a947
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/text_layer_builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class TextLayerBuilder {

this.div = document.createElement("div");
this.div.className = "textLayer";
this.hide();
}

#finishRendering() {
Expand Down

0 comments on commit ee7a947

Please sign in to comment.