Fix setting center to undefined
This commit is contained in:
@@ -1738,6 +1738,7 @@ class View extends BaseObject {
|
|||||||
this.set(ViewProperty.RESOLUTION, newResolution);
|
this.set(ViewProperty.RESOLUTION, newResolution);
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
|
!newCenter ||
|
||||||
!this.get(ViewProperty.CENTER) ||
|
!this.get(ViewProperty.CENTER) ||
|
||||||
!equals(this.get(ViewProperty.CENTER), newCenter)
|
!equals(this.get(ViewProperty.CENTER), newCenter)
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user