From 6b0d7e5a317f4deb808b59f4393fb8b5d0488587 Mon Sep 17 00:00:00 2001 From: jp Date: Mon, 14 Mar 2016 12:13:38 +0100 Subject: [PATCH] try catch in Popper mouse leave, prevent exception when _content not sized --- src/GraphicObjects/Popper.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/GraphicObjects/Popper.cs b/src/GraphicObjects/Popper.cs index 746e334b..69da1029 100644 --- a/src/GraphicObjects/Popper.cs +++ b/src/GraphicObjects/Popper.cs @@ -118,8 +118,10 @@ namespace Crow return; if (_content == null) return; - if (_content.MouseIsIn (e.Position)) - return; + try { + if (_content.MouseIsIn (e.Position)) + return; + } catch (Exception ex) {} IsPopped = false; } #endregion -- 2.47.3