Skip to content

DYN-8789: hide DynamoToolTip when parent window is not visible#16269

Merged
chubakueno merged 2 commits into
DynamoDS:masterfrom
chubakueno:feature/DYN-8789
Jun 5, 2025
Merged

DYN-8789: hide DynamoToolTip when parent window is not visible#16269
chubakueno merged 2 commits into
DynamoDS:masterfrom
chubakueno:feature/DYN-8789

Conversation

@chubakueno

@chubakueno chubakueno commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

Purpose

Hide DynamoToolTip when parent window is not visible

2025-06-04.22-11-06.mp4

Declarations

Check these if you believe they are true

  • 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
  • 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
  • This PR contains no files larger than 50 MB
  • This PR introduces new feature code involve network connecting and is tested with no-network mode.

Release Notes

Hide DynamoToolTip when parent window is not visible

Reviewers

@johnpierson
@BogdanZavu

FYIs

(FILL ME IN, Optional) Names of anyone else you wish to be notified of

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-8789

@johnpierson johnpierson requested a review from Copilot June 5, 2025 12:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the DynamoTextBox control to hide the DynamoToolTip popup when its parent window becomes not visible.

  • Subscribes to the PlacementTarget's IsVisibleChanged event when the popup is opened
  • Unsubscribes from the event when the popup is closed
  • Closes the popup when the PlacementTarget is no longer visible

@chubakueno chubakueno force-pushed the feature/DYN-8789 branch 2 times, most recently from 8e7ef3c to 35e34d1 Compare June 5, 2025 13:45
@chubakueno

Copy link
Copy Markdown
Contributor Author

Fixed #16268 in the wrong branch, force pushed to undo.

{
if (_target != null && !_target.IsVisible)
{
IsOpen = false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe do the unsubscribe here as well and set target to null ?

@chubakueno chubakueno Jun 5, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If we unsubscribe here, the popup will no longer resubscribe after the first disappearance, since tooltips are reused.

@BogdanZavu

Copy link
Copy Markdown
Contributor

LGTM!

@chubakueno chubakueno merged commit 74fef82 into DynamoDS:master Jun 5, 2025
26 of 27 checks passed
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