Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Canvas): Fix Edge source misplaced for containers #1584

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Oct 17, 2024

Context

In order to make room for the node's secondary label, the containers were expanded by 10px.

The problem comes when in vertical layout, that additional size is not taken into account when calculating the edges since the size is only reflected in the visualization part and not during the layout calculation.

The solution for now is to increase the group padding just a bit to make the secondary label to fit.

Before After
image image

fix: #1575

@lordrip lordrip force-pushed the fix/edge-source-misplaced branch from 91242a0 to 5c21d0e Compare October 17, 2024 14:54
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@da73c38). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1584   +/-   ##
=======================================
  Coverage        ?   79.91%           
  Complexity      ?      272           
=======================================
  Files           ?      280           
  Lines           ?     7998           
  Branches        ?     1527           
=======================================
  Hits            ?     6392           
  Misses          ?     1545           
  Partials        ?       61           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lordrip lordrip force-pushed the fix/edge-source-misplaced branch from 5c21d0e to 77abc76 Compare October 17, 2024 15:01
In order to make room for the node's secondary label, the containers
were expanded by `10px`.

The problem comes when in vertical layout, that additional size is not
taken into account when calculating the edges since the size is only
reflected in the visualization part and not during the layout
calculation.

The solution for now is to increase the group padding just a bit to make
the secondary label to fit.

fix: KaotoIO#1575
@lordrip lordrip force-pushed the fix/edge-source-misplaced branch from 77abc76 to 6ccbca9 Compare October 17, 2024 16:20
Copy link

sonarcloud bot commented Oct 17, 2024

@lordrip lordrip merged commit 5a09d8b into KaotoIO:main Oct 17, 2024
11 of 12 checks passed
@lordrip lordrip deleted the fix/edge-source-misplaced branch October 17, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Start of the arrow/edge is from within the container in case of Choice/Load-Balance processors
2 participants