Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

WebView - Get height of content

$
0
0

I have a view set up with several webviews vertically stacked inside a parent container which is a scrollview. Each webview has different content. I created a custom renderer for iOS which allows me to make adjustments to the height of each webview in OnElementChanged.

Frame = new System.Drawing.RectangleF(0, 0, newWidth, contentHeight);

Is there any way I can get this content height? Or is there some other way of achieving this?

In the end, all I am wanting to do is size the Webview height to its content. Once Webview could be of a height of 20, while another could be 500, all dynamic.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>