@canvas-components/list-table 0.3.11 → 0.3.12
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.
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -14679,7 +14679,10 @@ function drawSummarySegment(params, columns, clipRect, defaultTitleColumnKey) {
|
|
|
14679
14679
|
const { ctx, summaryTop, summaryHeight, theme } = params;
|
|
14680
14680
|
ctx.save();
|
|
14681
14681
|
const minX = columns[0].drawX;
|
|
14682
|
-
const
|
|
14682
|
+
const contentRight = columns[columns.length - 1].drawX + columns[columns.length - 1].width;
|
|
14683
|
+
const visibleRight = clipRect ? clipRect.x + clipRect.width : Infinity;
|
|
14684
|
+
const rightBorderInset = contentRight < visibleRight ? 1 : 0;
|
|
14685
|
+
const totalWidth = contentRight - minX + rightBorderInset;
|
|
14683
14686
|
ctx.beginPath();
|
|
14684
14687
|
ctx.rect(minX, summaryTop, totalWidth, summaryHeight);
|
|
14685
14688
|
ctx.clip();
|