[NUI][API8] Add Constraint base + inhouse ResizePolicyType.KeepSizeFollowingParent...
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / ViewInternal.cs
index ad173f1..f88b9e5 100755 (executable)
@@ -1116,6 +1116,16 @@ namespace Tizen.NUI.BaseComponents
                 {
                     ThemeManager.ThemeChangedInternal -= OnThemeChanged;
                 }
+                if(widthConstraint != null)
+                {
+                    widthConstraint.Remove();
+                    widthConstraint.Dispose();
+                }
+                if(heightConstraint != null)
+                {
+                    heightConstraint.Remove();
+                    heightConstraint.Dispose();
+                }
             }
 
             //Release your own unmanaged resources here.