|
@@ -238,6 +238,10 @@ class TileSelector extends Component {
|
|
|
if( imageElt != i ) return;
|
|
|
imageWidth = i.width;
|
|
|
imageHeight = i.height;
|
|
|
+ @:bypassAccessor this.size = {
|
|
|
+ height:Std.int(hxd.Math.clamp(this.size.height, 1, imageHeight)),
|
|
|
+ width:Std.int(hxd.Math.clamp(this.size.height, 1, imageWidth))
|
|
|
+ };
|
|
|
|
|
|
zoomLevel = getDisplayState("zoomLevel") ?? getDefaultZoomLevel();
|
|
|
|