Permalink
Browse files

WebViewSection test should only load html after other controls are in…

…stantiated (caused crash on os x)
  • Loading branch information...
1 parent 3fdf6b6 commit 3bea3358daf4020e7d37dcbcb3594ddde8c38971 @cwensley cwensley committed Nov 21, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Source/Eto.Test/Eto.Test/Sections/Controls/WebViewSection.cs
View
3 Source/Eto.Test/Eto.Test/Sections/Controls/WebViewSection.cs
@@ -20,6 +20,8 @@ public WebViewSection ()
layout.Add (Buttons ());
layout.AddSeparateRow (TitleLabel (), null, EnableContextMenu ());
layout.Add (webContainer, yscale: true);
+
+ LoadHtml();
}
Control WebView ()
@@ -43,7 +45,6 @@ Control WebView ()
webView.DocumentTitleChanged += delegate (object sender, WebViewTitleEventArgs e) {
titleLabel.Text = e.Title;
};
- LoadHtml();
return webView;
} catch (HandlerInvalidException) {

0 comments on commit 3bea335

Please sign in to comment.