-
Notifications
You must be signed in to change notification settings - Fork 693
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
Teaching Tip control shows scrollbar on hover even if content does fit #2747
Comments
The default for ScrollViewer.VerticalSrollbarVisibility is Visible, we can switch it to auto to get the desired behavior here. |
I would create a PR for that in a bit in case no one is already working on it. |
Shouldn't Auto be the default? |
I was expecting it to be auto as well but it does not seem to be. Visible is the default - https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.scrollviewer.verticalscrollbarvisibility?view=winrt-19041 |
Don't know why either. It must be inherited from the WPF ScrollViewer: https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.scrollviewer.verticalscrollbarvisibility?view=netcore-3.1 |
Auto seems to make sense here as the default value...could we use the new WinUI ScrollingView to introduce this change (and leave the existing OS XAML ScrollViewer control as is)? Quoted from #108:
|
Yes indeed, the new ScrollView control uses Auto/Auto for its defaults:
(ScrollView is the new name: #2730). |
This could be a ScrollViewer issue instead of TeachingTip, as I have seen this same behavior in controls with ScrollViewer. |
@jemonsivais It's insofar a ScrollViewer issue as what you are seeing here is the default behavior of the ScrollViewer's VerticalScrollBarVisibility mode, which is set to |
Lets set the property to auto in TeachingTip template to fix this in Teaching Tip. Thanks! |
Describe the bug
On the TeachingTip control, if the user hovers over on the right side of the tip, the scroll bar shows even if the content does fit in the control.
Steps to reproduce the bug
Steps to reproduce the behavior:
This can be seen on the Xaml Controls Gallery app
Expected behavior
No scroll bar shows if the content fits the control
Screenshots
Version Info
NuGet package version:
Additional context
The text was updated successfully, but these errors were encountered: