publ-echo-test 0.0.354 → 0.0.356
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.
|
@@ -230,6 +230,7 @@ var ReactGridLayout = function (_a) {
|
|
|
230
230
|
z: l.z,
|
|
231
231
|
placeholder: true,
|
|
232
232
|
i: i,
|
|
233
|
+
heightFitContent: l.heightFitContent,
|
|
233
234
|
};
|
|
234
235
|
var isUserAction = true;
|
|
235
236
|
var newLayout = isGroup
|
|
@@ -440,6 +441,7 @@ var ReactGridLayout = function (_a) {
|
|
|
440
441
|
z: l.z,
|
|
441
442
|
static: true,
|
|
442
443
|
i: i,
|
|
444
|
+
heightFitContent: l.heightFitContent,
|
|
443
445
|
};
|
|
444
446
|
props.onResize &&
|
|
445
447
|
props.onResize({
|
|
@@ -768,10 +770,11 @@ var ReactGridLayout = function (_a) {
|
|
|
768
770
|
var selectedLayoutItem = selectedBlockId
|
|
769
771
|
? getLayoutItem(layout, selectedBlockId)
|
|
770
772
|
: null;
|
|
771
|
-
var
|
|
772
|
-
|
|
773
|
-
|
|
773
|
+
var activeDragItemOrSelectedItem = activeDrag || selectedLayoutItem;
|
|
774
|
+
var activeRows = activeDragItemOrSelectedItem &&
|
|
775
|
+
Array.from({ length: activeDragItemOrSelectedItem.h }, function (_, i) { return activeDragItemOrSelectedItem.y + i; });
|
|
776
|
+
return (_jsxs("div", { ref: innerRef, className: mergedClassName, style: mergedStyle, onDrop: isDroppable ? onDropHandler : noop, onDragLeave: isDroppable ? onDragLeaveHandler : noop, onDragEnter: isDroppable ? onDragEnterHandler : noop, onDragOver: isDroppable ? onDragOverHandler : noop, "data-grid-row-height": rowHeight, "data-grid-cols": cols, "data-section-id": sectionId, children: [currentGroupBlocks.map(function (each) { return processGroup(each); }), React.Children.map(children, function (child) { return processGridItem(child); }), placeholder(), activeDrag && _jsx("div", { className: "grid-guide-line-center" }), activeDragItemOrSelectedItem && (_jsx(GridBackgroundPlaceholder, { backgroundWidth: getBackgroundWidth(), backgroundHeight: getBackgroundHeight(), margin: margin,
|
|
774
777
|
// width={width}
|
|
775
|
-
rowHeight: rowHeight, colWidth: colWidth, activeDrag:
|
|
778
|
+
rowHeight: rowHeight, colWidth: colWidth, activeDrag: activeDragItemOrSelectedItem, selectedBlockId: selectedBlockId, totalCols: cols }))] }));
|
|
776
779
|
};
|
|
777
780
|
export default ReactGridLayout;
|