publ-echo-test 0.0.233 → 0.0.234
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.
@@ -92,6 +92,8 @@ var Resizable = function (_a) {
|
|
92
92
|
var numberOfColumns = Number(target.getAttribute('data-number-of-columns'));
|
93
93
|
var rowGap = Number(target.getAttribute('data-row-gap'));
|
94
94
|
var columnGap = Number(target.getAttribute('data-column-gap'));
|
95
|
+
var insetTop = Number(target.getAttribute('data-inset-top'));
|
96
|
+
var insetBottom = Number(target.getAttribute('data-inset-bottom'));
|
95
97
|
var compositionCols = Number(oneComposition.getAttribute('data-cols'));
|
96
98
|
var compositionRows = Number(oneComposition.getAttribute('data-rows'));
|
97
99
|
var oneCompositionMinWidth = minCellWidth * compositionCols + 20 /* 20px padding */;
|
@@ -105,7 +107,7 @@ var Resizable = function (_a) {
|
|
105
107
|
var paddingTB = paddingT + paddingB;
|
106
108
|
var listMinWidth = oneCompositionMinWidth * numberOfColumns + (numberOfColumns - 1) * columnGap + paddingLR;
|
107
109
|
var numberOfRows = Math.ceil(numberOfItems / numberOfColumns);
|
108
|
-
var listMinHeight = oneCompositionMinHeight * numberOfRows + (numberOfRows - 1) * rowGap + paddingTB;
|
110
|
+
var listMinHeight = oneCompositionMinHeight * numberOfRows + (numberOfRows - 1) * rowGap + paddingTB + insetTop + insetBottom;
|
109
111
|
minWidth.current = listMinWidth;
|
110
112
|
minHeight.current = listMinHeight;
|
111
113
|
return;
|