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(ColorPicker): ToolTip of ColorPickerSlider doesn't work properly #13912

Closed

Conversation

TopProgrammer77
Copy link
Contributor

@TopProgrammer77 TopProgrammer77 commented Oct 6, 2023

GitHub Issue (If applicable): closes #13868

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

What is the new behavior?

Copilot Summary

🤖 Generated by Copilot at 2234ae9

This pull request enhances the ColorPicker and ColorPickerSlider controls, fixes a bug with the Slider thumb tooltip, and adds a new UI test and a new sample page for the ColorPicker. It also adds some null checks and flags to improve the stability and performance of the ToolTip and Slider controls.

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@github-actions github-actions bot added the area/automation Categorizes an issue or PR as relevant to project automation label Oct 6, 2023
@TopProgrammer77 TopProgrammer77 changed the title Color picker fix(ColorPicker): ToolTip of ColorPickerSlider doesn't work properly Oct 6, 2023
Comment on lines 176 to 179
// ToolTip doesn't currently provide any way to re-run its placement logic if its placement target moves,
// so toggling IsEnabled induces it to do that without incurring any visual glitches.
toolTip.IsEnabled = false;
toolTip.IsEnabled = true;
Copy link
Member

Choose a reason for hiding this comment

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

This code matches WinUI and shouldn't be changed. I believe @jeromelaban was already working on the proper fix.

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 fixed 2 issues( #13868 and #13865) in this PR. Which issue was @jeromelaban working on?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jeromelaban , @Youssef1313 .
No need to PR for issues #13868 and #13865?

Copy link
Member

Choose a reason for hiding this comment

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

Indeed, we cannot change that code as the original behavior from winui needs to be kept and tooltip needs to get the behavior that ColorPickerSlider is depending on. I worked on this during last week's stream, see https://www.youtube.com/watch?v=8Txc13MMJQk, though I did not get to finish it.

Choose a reason for hiding this comment

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

Thanks @jeromelaban. Are the any plans to finalize your work?

Copy link
Member

Choose a reason for hiding this comment

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

@DierkDroth not at this time, but it can be reused to update this PR.

Choose a reason for hiding this comment

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

Ah, thanks @jeromelaban for letting us know.

@DierkDroth
Copy link

@jeromelaban @Youssef1313 Is there any chance to get this PR reviewed? I would be happy to test that fix as those issues manifest themselves in my UNO WASM app.

Thanks in advance

@TopProgrammer77
Copy link
Contributor Author

@jeromelaban @Youssef1313
I removed the fix for issue #13865 and this PR is only for the issue #13868.
And I will create new PR for #13865.

@TopProgrammer77
Copy link
Contributor Author

This PR isn't needed now because I can't reproduce the issue on the latest Uno.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/automation Categorizes an issue or PR as relevant to project automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[WASM] Tooltip's position is not correct.
4 participants