@qrvey/utils 1.16.0-13 → 1.16.0-14
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.
|
@@ -262,8 +262,11 @@ const updateFixedElementDimensions = (containerItem, device, scopeElements) => {
|
|
|
262
262
|
let currentElement = (0, general_1.objectCopy)(containerItem);
|
|
263
263
|
const calculatedHeight = (0, fixed_position_1.dxGetFixedGridItemsBottomLimit)(scopeElements, device);
|
|
264
264
|
const currentHeight = currentElement.position.fixed[device].height;
|
|
265
|
+
const newHeight = calculatedHeight > currentHeight
|
|
266
|
+
? calculatedHeight + exports.CANVAS_EXTRA_HEIGHT
|
|
267
|
+
: currentHeight;
|
|
265
268
|
currentElement = updateFixedPosition(currentElement, {
|
|
266
|
-
height:
|
|
269
|
+
height: newHeight,
|
|
267
270
|
}, device);
|
|
268
271
|
return Object.assign({}, currentElement);
|
|
269
272
|
};
|
|
@@ -184,8 +184,12 @@ const updateResponsiveElementDimensions = (containerItem, device, scopeElements,
|
|
|
184
184
|
const calculatedHeight = (0, fixed_position_1.dxGetFixedGridItemsBottomLimit)(scopeElements, device);
|
|
185
185
|
// convert to rows
|
|
186
186
|
const transformToRows = Math.round(calculatedHeight / delta);
|
|
187
|
+
const baseRowSpan = Math.max(currentHeight, transformToRows);
|
|
188
|
+
const newRowSpan = baseRowSpan > currentHeight
|
|
189
|
+
? baseRowSpan + CANVAS_EXTRA_ROW
|
|
190
|
+
: currentHeight;
|
|
187
191
|
currentElement = updateResponsivePosition(currentElement, {
|
|
188
|
-
rowSpan:
|
|
192
|
+
rowSpan: newRowSpan,
|
|
189
193
|
}, device);
|
|
190
194
|
return Object.assign({}, currentElement);
|
|
191
195
|
};
|
|
@@ -250,8 +250,11 @@ export const updateFixedElementDimensions = (containerItem, device, scopeElement
|
|
|
250
250
|
let currentElement = objectCopy(containerItem);
|
|
251
251
|
const calculatedHeight = dxGetFixedGridItemsBottomLimit(scopeElements, device);
|
|
252
252
|
const currentHeight = currentElement.position.fixed[device].height;
|
|
253
|
+
const newHeight = calculatedHeight > currentHeight
|
|
254
|
+
? calculatedHeight + CANVAS_EXTRA_HEIGHT
|
|
255
|
+
: currentHeight;
|
|
253
256
|
currentElement = updateFixedPosition(currentElement, {
|
|
254
|
-
height:
|
|
257
|
+
height: newHeight,
|
|
255
258
|
}, device);
|
|
256
259
|
return Object.assign({}, currentElement);
|
|
257
260
|
};
|
|
@@ -173,8 +173,12 @@ export const updateResponsiveElementDimensions = (containerItem, device, scopeEl
|
|
|
173
173
|
const calculatedHeight = dxGetFixedGridItemsBottomLimit(scopeElements, device);
|
|
174
174
|
// convert to rows
|
|
175
175
|
const transformToRows = Math.round(calculatedHeight / delta);
|
|
176
|
+
const baseRowSpan = Math.max(currentHeight, transformToRows);
|
|
177
|
+
const newRowSpan = baseRowSpan > currentHeight
|
|
178
|
+
? baseRowSpan + CANVAS_EXTRA_ROW
|
|
179
|
+
: currentHeight;
|
|
176
180
|
currentElement = updateResponsivePosition(currentElement, {
|
|
177
|
-
rowSpan:
|
|
181
|
+
rowSpan: newRowSpan,
|
|
178
182
|
}, device);
|
|
179
183
|
return Object.assign({}, currentElement);
|
|
180
184
|
};
|