Skip to content

[WASM] ScrollViewer Scrollbar visibility is not working correctly  #3783

Closed

Description

@takla21

Current behavior

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.

wasmscrollbar

Expected behavior

UWP
uwpscrollbar

How to reproduce it (as minimally and precisely as possible)

Open this sample.zip
Deploy on wasm

Environment

Nuget Package: Uno.ui

Package Version(s): 3.0.0-dev.1540

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS
  • Windows
  • Build tasks
  • Solution Templates

Visual Studio:

  • 2017 (version: )
  • 2019 (version: 16.6.2)
  • for Mac (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

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.

Activity

  1. added
    kind/bug
    triage/untriaged
    platform/wasm 🌐
    on Aug 11, 2020
  2. self-assigned this
    on Aug 14, 2020
  3. takla21 commented on Aug 27, 2020

    @takla21
    ContributorAuthor

    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
    errro

    Updated Sample: HorizontalscrollSample.zip

    Environment
    Uno.UI: 3.1.0-dev.121

  4. added this to the 3.1 milestone on Aug 28, 2020
  5. dr1rrb commented on Aug 28, 2020

    @dr1rrb
    Member

    We recently worked to add support of WinUI ScrollBar in the ScrollViewer (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 the ScrollViewer still uses the "native" scroll bar. The leak seems problematic only if you create/remove a lot of ScrollViewer/ScrollBar (like in UI tests), so as a workaround for this bug you can change the style of your ScrollViewer to 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)

    GitHub
    Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported. - unoplatform/uno
  6. removed
    triage/untriaged
    on Aug 29, 2020
  7. added
    area/scrollviewer ⏬
    on Aug 31, 2020
  8. added
    project/input ⌨️
    on Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/scrollviewer ⏬kind/bugplatform/wasm 🌐project/input ⌨️

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions