We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 333765e commit a063780Copy full SHA for a063780
src/components/tile-manager/resize-util.ts
@@ -95,13 +95,13 @@ export class ResizeUtil {
95
const sizesAfterStart = entries.slice(tilePosition.start - 1);
96
const availableSize =
97
sizesAfterStart.reduce((sum, s) => sum + s, 0) +
98
- (entries.length - 1) * gap;
+ (sizesAfterStart.length - 1) * gap;
99
100
if (targetSize <= entries[0] + gap) {
101
return 1;
102
}
103
104
- if (targetSize > availableSize) {
+ if (Math.trunc(targetSize) > Math.trunc(availableSize)) {
105
const remainingSize = targetSize - availableSize;
106
107
const additionalSpan = Math.ceil(remainingSize / (minSize + gap));
0 commit comments