Skip to content

Commit 59cfa5d

Browse files
committed
fix: positioning of the ruler markers
1 parent 992f760 commit 59cfa5d

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
@@ -4388,16 +4388,16 @@ function RemoteFunctions(config = {}) {
43884388
this.labelElements.top.textContent = Math.round(y1) + "px";
43894389
this.labelElements.bottom.textContent = Math.round(y2) + "px";
43904390

4391-
this.labelElements.left.style.left = edges.left + "px";
4392-
this.labelElements.right.style.left = edges.right + "px";
4391+
this.labelElements.left.style.left = (edges.left - 30) + "px";
4392+
this.labelElements.right.style.left = (edges.right + 5) + "px";
43934393
this.labelElements.top.style.left = (scrollLeft + 10) + "px";
43944394
this.labelElements.bottom.style.left = (scrollLeft + 10) + "px";
43954395

43964396
this.labelElements.left.style.top = (scrollTop + 10) + "px";
43974397
this.labelElements.right.style.top = (scrollTop + 10) + "px";
43984398

4399-
this.labelElements.top.style.top = edges.top + "px";
4400-
this.labelElements.bottom.style.top = edges.bottom + "px";
4399+
this.labelElements.top.style.top = (edges.top - 15) + "px";
4400+
this.labelElements.bottom.style.top = (edges.bottom + 5) + "px";
44014401
},
44024402

44034403
remove: function() {

0 commit comments

Comments
 (0)