Skip to content

Commit 973f96d

Browse files
committed
Tweak pixel offsets for visibility check for new version
1 parent c2b2a66 commit 973f96d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

resources/scripts/robopaint.print-auto.client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ $(function() {
152152
.css('-webkit-transform', 'scale(' + cncserver.canvas.scale + ')');
153153

154154
// TODO: Find out where these inconsistencies in size/position come from
155-
cncserver.canvas.offset.left = mainOffset.left;
156-
cncserver.canvas.offset.top = mainOffset.top;
155+
cncserver.canvas.offset.left = mainOffset.left+1;
156+
cncserver.canvas.offset.top = mainOffset.top+1;
157157
}
158158

159159
});

resources/scripts/robopaint.print-man.client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ $(function() {
355355

356356
// TODO: Find out where these inconsistencies in size/position come from
357357
cncserver.canvas.offset.left = mainOffset.left + ((toolWidth + toolRightMargin) * cncserver.canvas.scale);
358-
cncserver.canvas.offset.top = mainOffset.top;
358+
cncserver.canvas.offset.top = mainOffset.top + 1;
359359
}
360360

361361
});

0 commit comments

Comments
 (0)