Microsoft.Toolkit.Win32
Microsoft.Toolkit.Win32 copied to clipboard
WebView rendered outside of ScrollViewer
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
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: )
This is also an issue at the bottom of the ScrollViewer
is this ever going to be fixed?