You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[WASM] ScrollViewer Scrollbar visibility is not working correctly #3783
area/scrollviewer ⏬Categorizes an issue or PR as relevant to ScrollViewerkind/bugSomething isn't workingplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platformproject/input ⌨️Categorizes an issue or PR as relevant to input (Button, CheckBox, Toggle, Scroll, Map, Numeric,...)
On wasm, it seems that only the vertical scrollbar is visible by default. Also, if we set both Horizontal and vertical scrollbar visibility to auto, it seems to hide them both.
Expected behavior
UWP
How to reproduce it (as minimally and precisely as possible)
At the moment, there seems to be a regression with the scrollviewer, because it simply does show any (in the version 3.0.0-dev.1551). The version I mentioned is the latest one with the bug.
So, I just retry with the latest version of Uno.Ui and the issue stills remains. But at least we can see the scrollviewer (the regression mention at the end is not a problem anymore)
area/scrollviewer ⏬Categorizes an issue or PR as relevant to ScrollViewerkind/bugSomething isn't workingplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platformproject/input ⌨️Categorizes an issue or PR as relevant to input (Button, CheckBox, Toggle, Scroll, Map, Numeric,...)
Activity
takla21 commentedon Aug 27, 2020
So, I just retry with the latest version of Uno.Ui and the issue stills remains. But at least we can see the scrollviewer (the regression mention at the end is not a problem anymore)
Actual result

Updated Sample: HorizontalscrollSample.zip
Environment
Uno.UI: 3.1.0-dev.121
dr1rrb commentedon Aug 28, 2020
We recently worked to add support of WinUI
ScrollBarin theScrollViewer(instead of relying on the native scrollbars of the browser which lacks of styling support!), which also fixes this issue.But it surfaced a memory leak with the
ScrollBar, so for now the default template of theScrollViewerstill uses the "native" scroll bar. The leak seems problematic only if you create/remove a lot ofScrollViewer/ScrollBar(like in UI tests), so as a workaround for this bug you can change the style of yourScrollViewerto use the default WinUI one (eg. https://github.com/unoplatform/uno/blob/master/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/ScrollViewerTests/ScrollViewer_ScrollBars.xaml#L15)