@ts-core/angular 13.0.63 → 13.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1863,7 +1863,7 @@ class ResizeManager {
|
|
|
1863
1863
|
//
|
|
1864
1864
|
// --------------------------------------------------------------------------
|
|
1865
1865
|
this.handler = (item) => {
|
|
1866
|
-
if (
|
|
1866
|
+
if (!ResizeManager.isSizeValid(item)) {
|
|
1867
1867
|
return;
|
|
1868
1868
|
}
|
|
1869
1869
|
if (!_.isNil(this.size) && item.width === this.size.width && item.height === this.size.height) {
|
|
@@ -1878,6 +1878,17 @@ class ResizeManager {
|
|
|
1878
1878
|
}
|
|
1879
1879
|
// --------------------------------------------------------------------------
|
|
1880
1880
|
//
|
|
1881
|
+
// Static Methods
|
|
1882
|
+
//
|
|
1883
|
+
// --------------------------------------------------------------------------
|
|
1884
|
+
static isSizeValid(item) {
|
|
1885
|
+
if (_.isNil(item) || item.width <= 0 || item.height <= 0) {
|
|
1886
|
+
return false;
|
|
1887
|
+
}
|
|
1888
|
+
return true;
|
|
1889
|
+
}
|
|
1890
|
+
// --------------------------------------------------------------------------
|
|
1891
|
+
//
|
|
1881
1892
|
// Public Properties
|
|
1882
1893
|
//
|
|
1883
1894
|
// --------------------------------------------------------------------------
|