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

Adjust the proxy ports for the groups that have CBN. #12574

Merged
merged 1 commit into from
Jan 24, 2022

Conversation

reddyashish
Copy link
Contributor

Purpose

These changes are to adjust the proxy port positions for the collapsed groups that have code block nodes in it.

This fix would not resolve the port design issues as we would need to have multiple controls to adjust based on the port size. In the current design, the ports get overlapped but after this fix, the ports will be stacked below each other.

Before:
image-2021-12-11-21-33-16-684

After:
Screen Shot 2022-01-24 at 8 51 45 PM

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated

Release Notes

Fix the proxy ports positions for groups that have CBN's.

Reviewers

@QilongTang @SHKnudsen @Amoursol

if (portModel.Owner is CodeBlockNodeModel)
{
// Special case because code block outputs are smaller than regular outputs.
return new Point2D(Left + Width, y + 6);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming there is a shift in this case, is there a way we can get the port to be closer to the group edge?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this value be based on a ratio instead of an exact pixel value?

Copy link
Contributor Author

@reddyashish reddyashish Jan 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@QilongTang If we adjust the margin more, it will displace ports coming from other nodes. This margin has been adjusted considering the area used for port snapping.

@@ -724,7 +724,6 @@
Grid.Row="0"
Canvas.ZIndex="20"
HorizontalContentAlignment="Left"
Style="{StaticResource InOutPortControlStyle}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what consequences does removing these styles have?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This styling doesn't make any additional difference to other ports as this same style will be inherited from the node ports(they have this same styling)

Copy link
Contributor Author

@reddyashish reddyashish Jan 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are removed mainly so that the CBN ports won't get overlapped with other ports.

@reddyashish
Copy link
Contributor Author

Merging this after talking to @mjkkirschner and @QilongTang. Will be creating a followup task to investigate further after the 2.13.1 hotfix.

@reddyashish reddyashish merged commit c4a5305 into DynamoDS:master Jan 24, 2022
reddyashish added a commit to reddyashish/Dynamo that referenced this pull request Jan 24, 2022
reddyashish added a commit that referenced this pull request Jan 24, 2022
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.

3 participants