publ-echo-test 0.0.227 → 0.0.229
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.
@@ -147,9 +147,6 @@ var GridItem = function (_a) {
|
|
147
147
|
if (isNaN(minWidth) || isNaN(minHeight)) {
|
148
148
|
return;
|
149
149
|
}
|
150
|
-
var height = isSizeChanged
|
151
|
-
? mutation.target.parentNode.clientHeight
|
152
|
-
: mutation.target.clientHeight;
|
153
150
|
var width = targetNode.clientWidth;
|
154
151
|
if (!isSizeChanged && mutation.target instanceof Element) {
|
155
152
|
var styles = getComputedStyle(mutation.target);
|
@@ -81,7 +81,10 @@ var Resizable = function (_a) {
|
|
81
81
|
}
|
82
82
|
var oneComposition = target.querySelector('.composition-container');
|
83
83
|
var isContentsList = target.id === 'contentslist-box';
|
84
|
-
if (
|
84
|
+
if (isContentsList) {
|
85
|
+
if (!oneComposition) {
|
86
|
+
return;
|
87
|
+
}
|
85
88
|
// NOTE: 이건 좀 확인 필요. 근데 지금스팩엔 이게 맞아보임 (gap때문)
|
86
89
|
var minCellWidth = 10;
|
87
90
|
var minCollHeight = 11;
|
@@ -91,8 +94,6 @@ var Resizable = function (_a) {
|
|
91
94
|
var columnGap = Number(target.getAttribute('data-column-gap'));
|
92
95
|
var compositionCols = Number(oneComposition.getAttribute('data-cols'));
|
93
96
|
var compositionRows = Number(oneComposition.getAttribute('data-rows'));
|
94
|
-
// const compositionRowHeight = Number(oneComposition.getAttribute('data-row-height')!);
|
95
|
-
// const compositionColWidth = Number(oneComposition.getAttribute('data-col-width')!);
|
96
97
|
var oneCompositionMinWidth = minCellWidth * compositionCols + 20 /* 20px padding */;
|
97
98
|
var oneCompositionMinHeight = minCollHeight * compositionRows + 20 /* 20px padding */;
|
98
99
|
var styles = getComputedStyle(target);
|
@@ -105,6 +106,7 @@ var Resizable = function (_a) {
|
|
105
106
|
var listMinWidth = oneCompositionMinWidth * numberOfColumns + (numberOfColumns - 1) * columnGap + paddingLR;
|
106
107
|
var numberOfRows = Math.ceil(numberOfItems / numberOfColumns);
|
107
108
|
var listMinHeight = oneCompositionMinHeight * numberOfRows + (numberOfRows - 1) * rowGap + paddingTB;
|
109
|
+
console.log('listMinHeight', listMinHeight, 'listMinWidth', listMinWidth);
|
108
110
|
minWidth.current = listMinWidth;
|
109
111
|
minHeight.current = listMinHeight;
|
110
112
|
return;
|