Microsoft.Toolkit.Win32 icon indicating copy to clipboard operation
Microsoft.Toolkit.Win32 copied to clipboard

WebView rendered outside of ScrollViewer

Open skendrot opened this issue 5 years ago • 2 comments

I'm submitting a...

  • Bug report (I searched for similar issues and did not find one)

Current behavior

When a WebView is inside a ScrollViewer it renders outside of the ScrollViewer bounds when scrolling

Expected behavior

The WebView should be contained within the ScrollViewer

Minimal reproduction of the problem with instructions

Create a WPF application, Add the following to the MainPage

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="100"/>
        <RowDefinition Height="*"/>
    </Grid.RowDefinitions>
    <Rectangle Fill="Blue"/>
    <ScrollViewer Grid.Row="1">
        <StackPanel>
            <WPF:WebView Source="http://bing.com" Height="76"/>
            <Rectangle Height="1000" Fill="Red"/>
        </StackPanel>
    </ScrollViewer>
</Grid>

Scroll the ScrollViewer. This becomes an even bigger issue when you have multiple WebViews in the ScrollViewer

image

Environment

Nuget Package(s): 
Microsoft.Toolkit.Wpf.UI.Controls.WebView

Package Version(s): 
5.1.0

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] Insider Build (build number: )

App min and target version:
- [x] .NET 4.6.2

Visual Studio 
- [x] 2017 (version: )

skendrot avatar Feb 27 '19 23:02 skendrot

This is also an issue at the bottom of the ScrollViewer

skendrot avatar Feb 28 '19 15:02 skendrot

is this ever going to be fixed?

julesx avatar Nov 25 '20 22:11 julesx