Skip to content

Commit 17a098c

Browse files
Update labware-creator's ConditionalLabwareRender.
This code was already using a `useLayoutEffect()` to automatically compute an SVG viewbox that enclosed the labware, so it never really mattered how the labware was translated in 2D space. The viewbox would automatically translate to follow it, no matter what. So we can just flip `offsetInSlot` to `passThrough` here without needing to change anything else.
1 parent c0bd892 commit 17a098c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labware-library/src/labware-creator/components/ConditionalLabwareRender.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const PopulatedPreview = (props: {
9696
{() => (
9797
<LabwareRender
9898
definition={definition}
99-
positioningMode="offsetInSlot"
99+
positioningMode="passThrough"
100100
gRef={gRef}
101101
/>
102102
)}

0 commit comments

Comments
 (0)