deck: rail connector starts from Marts bottom edge, not top (was crossing the box)

This commit is contained in:
Codex
2026-09-07 21:05:49 +02:00
parent 54da406971
commit 744af1d8c7
+3 -2
View File
@@ -561,9 +561,10 @@
const cx = (marts.left + marts.width / 2 - rwrap.left) / s;
const railLeft = (rail.left - rwrap.left) / s;
const railTop = (rail.top - rwrap.top) / s;
const mBottom = (marts.bottom - rwrap.top) / s;
drop.style.left = (cx - 1) + 'px';
drop.style.top = ((marts.top - rwrap.top) / s) + 'px';
drop.style.height = Math.max(0, railTop - (marts.top - rwrap.top) / s) + 'px';
drop.style.top = mBottom + 'px';
drop.style.height = Math.max(0, railTop - mBottom) + 'px';
elbow.style.left = railLeft + 'px';
elbow.style.width = Math.max(0, cx - railLeft) + 'px';
elbow.style.top = (railTop - 1) + 'px';