publ-echo-test 0.0.223 → 0.0.225

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.
@@ -154,10 +154,10 @@ var GridItem = function (_a) {
154
154
  var width = targetNode.clientWidth;
155
155
  if (!isSizeChanged && mutation.target instanceof Element) {
156
156
  var styles = getComputedStyle(mutation.target);
157
- var minWidth_1 = parseFloat(styles.minWidth);
158
- console.log('minWidth', minWidth_1, 'width', width);
157
+ // const minWidth = parseFloat(styles.minWidth);
158
+ console.log('minWidth', minWidth, 'width', width);
159
159
  console.log('minHeight', minHeight, 'height', height);
160
- if (minWidth_1 > width) {
160
+ if (minWidth > width) {
161
161
  keepWidth = false;
162
162
  }
163
163
  // NOTE: POC
@@ -179,11 +179,8 @@ var GridItem = function (_a) {
179
179
  width: minWidth,
180
180
  height: minHeight,
181
181
  }, x, y, 'e', props.w, props.h, false), w_2 = _a.w, h_2 = _a.h;
182
- // if (keepWidth) {
183
- // w = prevW;
184
- // }
185
- if (minWidth > w_2) {
186
- w_2 = minWidth;
182
+ if (keepWidth) {
183
+ w_2 = prevW;
187
184
  }
188
185
  if (prevH > h_2) {
189
186
  h_2 = prevH;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.223",
3
+ "version": "0.0.225",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",