فهرست منبع

Merge pull request #1395 from BDisp/scrollview-clipping-fix

Fixes #1394. Added ReflectedType to check for overridden.
Charlie Kindel 4 سال پیش
والد
کامیت
5a1c8a7cda
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Terminal.Gui/Views/ScrollView.cs

+ 1 - 1
Terminal.Gui/Views/ScrollView.cs

@@ -207,7 +207,7 @@ namespace Terminal.Gui {
 			Type t = view.GetType ();
 			MethodInfo m = t.GetMethod ("MouseEvent");
 
-			return m.DeclaringType == t && m.GetBaseDefinition ().DeclaringType == typeof (Responder);
+			return (m.DeclaringType == t || m.ReflectedType == t) && m.GetBaseDefinition ().DeclaringType == typeof (Responder);
 		}
 
 		/// <summary>