deck: rail connector starts from Marts bottom edge, not top (was crossing the box)
This commit is contained in:
@@ -561,9 +561,10 @@
|
|||||||
const cx = (marts.left + marts.width / 2 - rwrap.left) / s;
|
const cx = (marts.left + marts.width / 2 - rwrap.left) / s;
|
||||||
const railLeft = (rail.left - rwrap.left) / s;
|
const railLeft = (rail.left - rwrap.left) / s;
|
||||||
const railTop = (rail.top - rwrap.top) / s;
|
const railTop = (rail.top - rwrap.top) / s;
|
||||||
|
const mBottom = (marts.bottom - rwrap.top) / s;
|
||||||
drop.style.left = (cx - 1) + 'px';
|
drop.style.left = (cx - 1) + 'px';
|
||||||
drop.style.top = ((marts.top - rwrap.top) / s) + 'px';
|
drop.style.top = mBottom + 'px';
|
||||||
drop.style.height = Math.max(0, railTop - (marts.top - rwrap.top) / s) + 'px';
|
drop.style.height = Math.max(0, railTop - mBottom) + 'px';
|
||||||
elbow.style.left = railLeft + 'px';
|
elbow.style.left = railLeft + 'px';
|
||||||
elbow.style.width = Math.max(0, cx - railLeft) + 'px';
|
elbow.style.width = Math.max(0, cx - railLeft) + 'px';
|
||||||
elbow.style.top = (railTop - 1) + 'px';
|
elbow.style.top = (railTop - 1) + 'px';
|
||||||
|
|||||||
Reference in New Issue
Block a user