@fullcalendar/scrollgrid
Advanced tools
Comparing version 5.0.0-beta.4 to 5.0.0-rc
19
main.js
/*! | ||
FullCalendar v5.0.0-beta.4 | ||
FullCalendar v5.0.0-rc | ||
Docs & License: https://fullcalendar.io/ | ||
@@ -702,7 +702,15 @@ (c) 2019 Adam Shaw | ||
var rowInChunkCnt = rowHeightsByChunk[chunkI].length; | ||
var rowInChunkHeight = (maxTotalSum - rowInChunkCnt) / rowInChunkCnt; // subtract border | ||
var rowInChunkTotalHeight = maxTotalSum - rowInChunkCnt; // subtract border | ||
var rowInChunkHeightOthers = Math.floor(rowInChunkTotalHeight / rowInChunkCnt); // height of non-first row. we do this to avoid rounding, because it's unreliable within a table | ||
var rowInChunkHeightFirst = rowInChunkTotalHeight - rowInChunkHeightOthers * (rowInChunkCnt - 1); // whatever is leftover goes to the first row | ||
var rowInChunkHeights = []; | ||
for (var row = 0; row < rowInChunkCnt; row++) { | ||
rowInChunkHeights.push(rowInChunkHeight); | ||
var row = 0; | ||
if (row < rowInChunkCnt) { | ||
rowInChunkHeights.push(rowInChunkHeightFirst); | ||
row++; | ||
} | ||
while (row < rowInChunkCnt) { | ||
rowInChunkHeights.push(rowInChunkHeightOthers); | ||
row++; | ||
} | ||
assignableHeights.push(rowInChunkHeights); | ||
@@ -879,3 +887,4 @@ } | ||
} | ||
return (createElement("col", { style: { width: width } })); | ||
return ( // eslint-disable-next-line react/jsx-key | ||
createElement("col", { style: { width: width } })); | ||
}); | ||
@@ -882,0 +891,0 @@ return createElement.apply(void 0, __spreadArrays(['colgroup', {}], children)); |
{ | ||
"name": "@fullcalendar/scrollgrid", | ||
"version": "5.0.0-beta.4", | ||
"version": "5.0.0-rc", | ||
"title": "FullCalendar ScrollGrid Plugin", | ||
"description": "internal package", | ||
"dependencies": { | ||
"@fullcalendar/common": "5.0.0-beta.4", | ||
"@fullcalendar/premium-common": "5.0.0-beta.4", | ||
"tslib": "^1.9.3" | ||
"@fullcalendar/common": "5.0.0-rc", | ||
"@fullcalendar/premium-common": "5.0.0-rc", | ||
"tslib": "^2.0.0" | ||
}, | ||
"module": "main.js", | ||
"main": "main.js", | ||
"types": "main.d.ts", | ||
@@ -13,0 +13,0 @@ "homepage": "https://fullcalendar.io/scheduler", |
Sorry, the diff of this file is not supported yet
125467
1014
+ Added@fullcalendar/common@5.0.0-rc(transitive)
+ Added@fullcalendar/premium-common@5.0.0-rc(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@fullcalendar/common@5.0.0-beta.4(transitive)
- Removed@fullcalendar/premium-common@5.0.0-beta.4(transitive)
- Removedtslib@1.14.1(transitive)
Updatedtslib@^2.0.0