Skip to content

Commit 824a12d

Browse files
committed
fix: round the pixels to ensure integer display
1 parent cf18b34 commit 824a12d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4383,10 +4383,10 @@ function RemoteFunctions(config = {}) {
43834383
const y1 = Math.floor(edges.top + 1);
43844384
const y2 = y1 + rect.height;
43854385

4386-
this.labelElements.left.textContent = x1 + "px";
4387-
this.labelElements.right.textContent = x2 + "px";
4388-
this.labelElements.top.textContent = y1 + "px";
4389-
this.labelElements.bottom.textContent = y2 + "px";
4386+
this.labelElements.left.textContent = Math.round(x1) + "px";
4387+
this.labelElements.right.textContent = Math.round(x2) + "px";
4388+
this.labelElements.top.textContent = Math.round(y1) + "px";
4389+
this.labelElements.bottom.textContent = Math.round(y2) + "px";
43904390

43914391
this.labelElements.left.style.left = edges.left + "px";
43924392
this.labelElements.right.style.left = edges.right + "px";

0 commit comments

Comments
 (0)