publ-echo-test 0.0.74 → 0.0.75
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.
@@ -248,7 +248,6 @@ var GridItem = function (_a) {
|
|
248
248
|
var rowHeightNumber = resolveRowHeight(rowHeight, colWidth);
|
249
249
|
var bottomBoundary = offsetParent.clientHeight -
|
250
250
|
calcGridItemWHPx(h, rowHeightNumber, margin[1]);
|
251
|
-
console.log('bb', bottomBoundary);
|
252
251
|
top = clamp(top, 0, bottomBoundary);
|
253
252
|
var rightBoundary = containerWidth - calcGridItemWHPx(w, colWidth, margin[0]);
|
254
253
|
left = clamp(left, 0, rightBoundary);
|
@@ -385,7 +384,6 @@ var GridItem = function (_a) {
|
|
385
384
|
resizing: resizing,
|
386
385
|
}, colWidth);
|
387
386
|
var child = React.Children.only(children);
|
388
|
-
// console.log(child.props.className, className)
|
389
387
|
var newChild = React.cloneElement(child, {
|
390
388
|
key: i,
|
391
389
|
ref: elementRef,
|
@@ -403,8 +401,12 @@ var GridItem = function (_a) {
|
|
403
401
|
}),
|
404
402
|
style: __assign(__assign(__assign({}, props.style), child.props.style), createStyle(pos)),
|
405
403
|
});
|
406
|
-
|
407
|
-
|
404
|
+
if (isResizable) {
|
405
|
+
newChild = mixinResizable(newChild, pos, isResizable);
|
406
|
+
}
|
407
|
+
if (isDraggable) {
|
408
|
+
newChild = mixinDraggable(newChild, isDraggable);
|
409
|
+
}
|
408
410
|
return newChild;
|
409
411
|
};
|
410
412
|
export default GridItem;
|