unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.91k stars 722 forks source link

[WASM] `ScrollBar` isn't going to appear while dynamic content is being aggregated #6077

Open sigmarsson opened 3 years ago

sigmarsson commented 3 years ago

Scrollbar isn't showing up in the scroll viewer

        <nowinui:ScrollViewer Grid.Row="1"
                              VerticalScrollMode="Auto"
                              VerticalScrollBarVisibility="Auto">
            <wasmcc:WebAssemblyHtmlControl HtmlContent="{x:Bind HtmlContent, Mode=OneWay}" />
        </nowinui:ScrollViewer>

HtmlContent is aggregating <div> elements in the view model.

Expected behavior

Vertical scroll bar appears as property HtmlContent is aggregating.

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

Workaround

Environment

Nuget Package:

Nuget Package Version(s):

Affected platform(s):

IDE:

Relevant plugins:

Anything else we need to know?

jeromelaban commented 3 years ago

Thank you for the report. Can you provide a full repro sample attached to the issue ?

sigmarsson commented 3 years ago

@jeromelaban yes, please consider the respective commit here.

dr1rrb commented 2 years ago

Direct link to the commit : https://github.com/sigmarsson/6051/commit/29ba9d2c8459e854978bdbd46123d2786832e3f7