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

Limit the tooltip width of Ports #9813

Merged
merged 1 commit into from Jun 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/DynamoCoreWpf/UI/Themes/Modern/Ports.xaml
Expand Up @@ -67,7 +67,7 @@
<Grid.ToolTip>
<dynui:DynamoToolTip AttachmentSide="{Binding Path=PortType, Converter={StaticResource PortToAttachmentConverter}}" Style="{DynamicResource ResourceKey=SLightToolTip}">
<Grid>
<TextBlock Text="{Binding Path=ToolTipContent}"></TextBlock>
<TextBlock MaxWidth="320" TextWrapping="Wrap" Text="{Binding Path=ToolTipContent}"></TextBlock>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you elaborate here how did you define 320? If possible can you move the number to be a const number property?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I found that the node Rectangle ToolTip was set width as 320. (

<TextBlock MaxWidth="320"
)
So I just keep the same as it.

</Grid>
</dynui:DynamoToolTip>
</Grid.ToolTip>
Expand Down