publ-echo-test 0.0.220 → 0.0.222

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.
@@ -138,6 +138,7 @@ var GridItem = function (_a) {
138
138
  var callback = function (mutationsList) {
139
139
  for (var _i = 0, mutationsList_2 = mutationsList; _i < mutationsList_2.length; _i++) {
140
140
  var mutation = mutationsList_2[_i];
141
+ console.log('mutation', mutation);
141
142
  var isSizeChanged = mutation.attributeName === 'data-min-width' || mutation.attributeName === 'data-min-height';
142
143
  var keepWidth = true;
143
144
  var hasPaddingChanged = false;
@@ -154,6 +155,8 @@ var GridItem = function (_a) {
154
155
  if (!isSizeChanged && mutation.target instanceof Element) {
155
156
  var styles = getComputedStyle(mutation.target);
156
157
  var minWidth_1 = parseFloat(styles.minWidth);
158
+ console.log('minWidth', minWidth_1, 'width', width);
159
+ console.log('minHeight', minHeight, 'height', height);
157
160
  if (minWidth_1 > width) {
158
161
  keepWidth = false;
159
162
  }
@@ -176,8 +179,11 @@ var GridItem = function (_a) {
176
179
  width: minWidth,
177
180
  height: minHeight,
178
181
  }, x, y, 'e', props.w, props.h, false), w_2 = _a.w, h_2 = _a.h;
179
- if (keepWidth) {
180
- w_2 = prevW;
182
+ // if (keepWidth) {
183
+ // w = prevW;
184
+ // }
185
+ if (minWidth > w_2) {
186
+ w_2 = minWidth;
181
187
  }
182
188
  if (prevH > h_2) {
183
189
  h_2 = prevH;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.220",
3
+ "version": "0.0.222",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",