zimjs 17.2.0 → 17.2.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/zim.js +7 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zimjs",
3
- "version": "17.2.0",
3
+ "version": "17.2.2",
4
4
  "type": "module",
5
5
  "main": "./src/zim.js",
6
6
  "types": "./ts-src/typings/zim",
package/src/zim.js CHANGED
@@ -27649,7 +27649,6 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
27649
27649
  if (replace) that.contentContainer.removeAllChildren();
27650
27650
  if (center) obj.center(that.contentContainer, index);
27651
27651
  else obj.addTo(that.contentContainer, index);
27652
- addHTML(that.contentContainer);
27653
27652
  return that;
27654
27653
  }
27655
27654
 
@@ -36948,10 +36947,15 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
36948
36947
  loader.resize();
36949
36948
  }
36950
36949
  adjustBoxes();
36951
- setTimeout(function(){
36950
+ if (obj.width) {
36952
36951
  obj.scaleTo(that.box,100,100).loc(0,0,sc,0);
36953
36952
  that.stage.update();
36954
- },20);
36953
+ } else {
36954
+ setTimeout(function() {
36955
+ obj.scaleTo(that.box,100,100).loc(0,0,sc,0);
36956
+ that.stage.update();
36957
+ }, 50);
36958
+ }
36955
36959
  }
36956
36960
  if (resize) {
36957
36961
  that.resizeHandle.on("pressup", function() {