Skip to content

Commit

Permalink
[base] Fix an issue with clamp connectors
Browse files Browse the repository at this point in the history
Fix an issue where clamp connectors in the change panel used the bounds of the popover, instead of the bounds of the whole container (i.e. either panels, which is the correct one in this case).
  • Loading branch information
saasen authored and rexxars committed Oct 6, 2020
1 parent b92a55c commit d55fc3b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ export const ConnectorsOverlay = React.memo(function ConnectorsOverlay(props: Pr
}

const clampConnector = {
top: field.rect.bounds.top + CONNECTOR_BOUNDS_MARGIN,
bottom: field.rect.bounds.bottom - CONNECTOR_BOUNDS_MARGIN
top: change.rect.bounds.top + CONNECTOR_BOUNDS_MARGIN,
bottom: change.rect.bounds.bottom - CONNECTOR_BOUNDS_MARGIN
}

const connectorClassName = change.hasRevertHover
Expand Down

0 comments on commit d55fc3b

Please sign in to comment.