publ-echo-test 0.0.241 → 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
  }
@@ -225,7 +225,8 @@ var GridItem = function (_a) {
225
225
  var _g = calcWH(getPositionParams(), {
226
226
  width: minWidth,
227
227
  height: minHeight + insetTop + insetBottom,
228
- }, x, y, 'e', props.w, props.h, false), w = _g.w, h = _g.h;
228
+ }, x, y, 'e', props.w, props.h, true), w = _g.w, h = _g.h;
229
+ console.log('newH, newW', h, w);
229
230
  var prevW = props.w;
230
231
  var prevH = props.h;
231
232
  if (prevW > w) {
@@ -240,7 +241,7 @@ var GridItem = function (_a) {
240
241
  }
241
242
  console.log('call onfitToContent');
242
243
  props.onFitToContent &&
243
- props.onFitToContent(i, w, h, x, y, { hasPaddingChanged: false });
244
+ props.onFitToContent(i, w, h, x, y, { hasPaddingChanged: true });
244
245
  }, [isSelected]);
245
246
  // const moveDroppingItem = (prevProps: GridItemProps) => {
246
247
  // const { droppingPosition } = props;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.241",
3
+ "version": "0.0.243",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",