publ-echo-test 0.0.242 → 0.0.243

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.
@@ -140,7 +140,7 @@ var GridItem = function (_a) {
140
140
  var mutation = mutationsList_2[_i];
141
141
  var isSizeChanged = mutation.attributeName === 'data-min-width' || mutation.attributeName === 'data-min-height';
142
142
  var keepWidth = true;
143
- var hasPaddingChanged = false;
143
+ var hasPaddingChanged = true;
144
144
  var insetTop = Number(mutation.target.dataset.insetTop);
145
145
  var insetBottom = Number(mutation.target.dataset.insetBottom);
146
146
  var minWidth = Number(mutation.target.dataset.minWidth);
@@ -173,7 +173,7 @@ var GridItem = function (_a) {
173
173
  var _a = calcWH(getPositionParams(), {
174
174
  width: minWidth,
175
175
  height: minHeight,
176
- }, x, y, 'e', props.w, props.h, false), w_2 = _a.w, h_2 = _a.h;
176
+ }, x, y, 'e', props.w, props.h, true), w_2 = _a.w, h_2 = _a.h;
177
177
  if (keepWidth) {
178
178
  w_2 = prevW;
179
179
  }
@@ -241,7 +241,7 @@ var GridItem = function (_a) {
241
241
  }
242
242
  console.log('call onfitToContent');
243
243
  props.onFitToContent &&
244
- props.onFitToContent(i, w, h, x, y, { hasPaddingChanged: false });
244
+ props.onFitToContent(i, w, h, x, y, { hasPaddingChanged: true });
245
245
  }, [isSelected]);
246
246
  // const moveDroppingItem = (prevProps: GridItemProps) => {
247
247
  // const { droppingPosition } = props;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.242",
3
+ "version": "0.0.243",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",