Fix setting center to undefined

This commit is contained in:
Maximilian Kroeg
2021-12-09 15:23:30 +01:00
parent e79d9d386b
commit fa80e2d064

View File

@@ -1738,6 +1738,7 @@ class View extends BaseObject {
this.set(ViewProperty.RESOLUTION, newResolution);
}
if (
!newCenter ||
!this.get(ViewProperty.CENTER) ||
!equals(this.get(ViewProperty.CENTER), newCenter)
) {