publ-echo-test 0.0.315 → 0.0.318
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.
@@ -149,7 +149,7 @@ var GridItem = function (_a) {
|
|
149
149
|
var hasPaddingChanged = true;
|
150
150
|
var layoutBox = targetNode.children[0];
|
151
151
|
var contentsWrapper = layoutBox.children[0];
|
152
|
-
var oneComposition = contentsWrapper.
|
152
|
+
var oneComposition = contentsWrapper.querySelector(".composition-container");
|
153
153
|
console.log("layoutbox", layoutBox);
|
154
154
|
console.log("contentsWrapper", contentsWrapper);
|
155
155
|
console.log("oneComposition", oneComposition);
|
@@ -127,14 +127,16 @@ var Resizable = function (_a) {
|
|
127
127
|
}
|
128
128
|
var target = (_a = placeholder.children[0].children[0].children[0]) !== null && _a !== void 0 ? _a : placeholder.children[0].children[0];
|
129
129
|
// const oneComposition = target.querySelector(".composition-container");
|
130
|
-
var
|
130
|
+
var isCCBLayoutbox = target.classList.contains("ccb-layout-box");
|
131
131
|
var layoutBox = target.children[0];
|
132
132
|
var contentsWrapper = layoutBox.children[0];
|
133
|
-
var oneComposition = contentsWrapper.
|
134
|
-
|
133
|
+
var oneComposition = contentsWrapper.querySelector(".composition-container");
|
134
|
+
// const oneComposition =
|
135
|
+
// contentsWrapper.children[0].children[0].children[0].children[2];
|
136
|
+
if (!isCCBLayoutbox || !oneComposition) {
|
135
137
|
return;
|
136
138
|
}
|
137
|
-
if (
|
139
|
+
if (isCCBLayoutbox && oneComposition) {
|
138
140
|
var minCellWidth = 10;
|
139
141
|
var numberOfItems = Number(target.getAttribute("data-number-of-items"));
|
140
142
|
var numberOfColumns = Number(target.getAttribute("data-number-of-columns"));
|