publ-echo-test 0.0.212 → 0.0.214

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.
@@ -93,13 +93,17 @@ var Resizable = function (_a) {
93
93
  var compositionRows = Number(oneComposition.getAttribute('data-rows'));
94
94
  // const compositionRowHeight = Number(oneComposition.getAttribute('data-row-height')!);
95
95
  // const compositionColWidth = Number(oneComposition.getAttribute('data-col-width')!);
96
- var oneCompositionMinWidth = minCellWidth * compositionCols;
97
- var oneCompositionMinHeight = minCollHeight * compositionRows;
96
+ var oneCompositionMinWidth = minCellWidth * compositionCols + 20 /* 20px padding */;
97
+ var oneCompositionMinHeight = minCollHeight * compositionRows + 20 /* 20px padding */;
98
98
  var listMinWidth = Math.max(oneCompositionMinWidth * numberOfColumns + (numberOfColumns - 1) * columnGap, 0);
99
- minWidth.current = Math.round(listMinWidth);
100
99
  var numberOfRows = Math.ceil(numberOfItems / numberOfColumns);
101
100
  var listMinHeight = Math.max(oneCompositionMinHeight * numberOfRows + (numberOfRows - 1) * rowGap, 0);
102
- minHeight.current = Math.round(listMinHeight);
101
+ minWidth.current = listMinWidth;
102
+ minHeight.current = listMinHeight;
103
+ console.log('compositionMinWidth', oneCompositionMinWidth);
104
+ console.log('compositionMinHeight', oneCompositionMinHeight);
105
+ console.log('minWidth.current', minWidth.current);
106
+ console.log('minHeight.current', minHeight.current);
103
107
  return;
104
108
  }
105
109
  // target.clientHeight -> 실제 "노드"의 height. (gridItem아닌)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.212",
3
+ "version": "0.0.214",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",