diff options
author | Rui Marinho <me@ruimarinho.net> | 2016-04-24 09:38:40 -0400 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-04-24 09:38:40 -0400 |
commit | feac1ba3ed6df5e27b3fa2076bd15c190cbacd1c (patch) | |
tree | 38bb9656e285c00a5d5743fc2e129b24805ef91f /Xamarin.Forms.Platform.iOS/Renderers/WebViewRenderer.cs | |
parent | 45eff313ed5a1367625f504b60421135b120bea4 (diff) | |
download | xamarin-forms-feac1ba3ed6df5e27b3fa2076bd15c190cbacd1c.tar.gz xamarin-forms-feac1ba3ed6df5e27b3fa2076bd15c190cbacd1c.tar.bz2 xamarin-forms-feac1ba3ed6df5e27b3fa2076bd15c190cbacd1c.zip |
[iOS] Fix issue with WebView dispose and resizing (#128)
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers/WebViewRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Renderers/WebViewRenderer.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/WebViewRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/WebViewRenderer.cs index 577addb7..ee804a83 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/WebViewRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/WebViewRenderer.cs @@ -47,7 +47,6 @@ namespace Xamarin.Forms.Platform.iOS BackgroundColor = UIColor.Clear; AutosizesSubviews = true; - AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight; _tracker = new VisualElementTracker(this); @@ -103,6 +102,9 @@ namespace Xamarin.Forms.Platform.iOS ((WebView)Element).EvalRequested -= OnEvalRequested; ((WebView)Element).GoBackRequested -= OnGoBackRequested; ((WebView)Element).GoForwardRequested -= OnGoForwardRequested; + + _tracker?.Dispose(); + _packager?.Dispose(); } base.Dispose(disposing); |