android - Xamarin.Forms - WebKit WebView (SKLn-Rad/Xam.Plugin.Webview) 垂直滚动问题
问题描述
我在使用 SKLn-Rad HybridWebView 时遇到问题。当尝试向下滚动时,视图会上升,反之亦然。我认为一般来说是 WebView 的一个问题,因为在使用这个混合 webview 之前我有同样的问题。
XAML 代码:
<StackLayout
Padding="3"
BackgroundColor="#e2cedf"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand">
<Grid HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<Grid.RowDefinitions>
<RowDefinition Height="40" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="40" />
<ColumnDefinition Width="40" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<webview:FormsWebView
x:Name="WebContent"
Grid.Row="1"
Grid.Column="0"
Grid.ColumnSpan="5"
ContentType="Internet"
HorizontalOptions="FillAndExpand"
OnContentLoaded="OnNavigated"
OnNavigationCompleted="OnNavigated"
OnNavigationStarted="OnNavigating"
Source="https://purpuraylimon.com/"
VerticalOptions="FillAndExpand" />
</Grid>
</StackLayout>
解决方案
推荐阅读
- android - 不能使用注入值作为另一个注入的构造函数
- javascript - 从 Javascript 中的值获取 div 元素的填充
- amazon-web-services - AWS Application Load Balancer - 转义路径模式字符
- c - 如何使用结构修复函数中的分段错误(核心转储)
- c# - 如何在 {controller}/{action}/{id} 之前使用自定义路由获取值
- python - Function to input key and value from dictionary, extract line of data from given input location (csv file), and output the line of data
- node.js - (JWT) RSA Encryption/decryption issue
- javascript - 在 websocket api javascript 中使用回调函数
- google-apps-script - 如何使用 onclick=google.script.run.taxBill(this.value) 在循环的 Htmlservice 表中获取列值?
- c# - 如何在 Visual Studio 中阻止磁贴自动缩放