Skip to content

Commit 707976c

Browse files
committed
Update 3.show-result-texts-on-the-video.html
1 parent 45b68fa commit 707976c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

4.use-case/3.show-result-texts-on-the-video.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090

9191
textContainer = document.createElement("div");
9292
const bodyStyle = getComputedStyle(document.body);
93-
if (bodyStyle.position === "relative") {
93+
if (bodyStyle.position !== "static") {
9494
const rect = document.body.getBoundingClientRect();
9595
const borderWidth = parseInt(bodyStyle.borderWidth);
9696
Object.assign(textContainer.style, {

0 commit comments

Comments
 (0)