@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.js
CHANGED
|
@@ -14677,7 +14677,10 @@ function drawSummarySegment(params, columns, clipRect, defaultTitleColumnKey) {
|
|
|
14677
14677
|
const { ctx, summaryTop, summaryHeight, theme } = params;
|
|
14678
14678
|
ctx.save();
|
|
14679
14679
|
const minX = columns[0].drawX;
|
|
14680
|
-
const
|
|
14680
|
+
const contentRight = columns[columns.length - 1].drawX + columns[columns.length - 1].width;
|
|
14681
|
+
const visibleRight = clipRect ? clipRect.x + clipRect.width : Infinity;
|
|
14682
|
+
const rightBorderInset = contentRight < visibleRight ? 1 : 0;
|
|
14683
|
+
const totalWidth = contentRight - minX + rightBorderInset;
|
|
14681
14684
|
ctx.beginPath();
|
|
14682
14685
|
ctx.rect(minX, summaryTop, totalWidth, summaryHeight);
|
|
14683
14686
|
ctx.clip();
|