Skip to content

Commit

Permalink
fix: 修复明细表底部存在空白行的问题 (close antvis#2958)
Browse files Browse the repository at this point in the history
  • Loading branch information
linwrui committed Nov 8, 2024
1 parent e759891 commit 05bea74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/s2-core/src/facet/bbox/panel-bbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ export class PanelBBox extends BaseBBox {
this.minX = this.x;
this.minY = this.y;

const scrollBarSize = this.spreadsheet.theme.scrollBar!.size;
const { width: canvasWidth, height: canvasHeight } =
this.spreadsheet.options;

const panelWidth = Math.max(0, canvasWidth! - this.x);
const panelHeight = Math.max(0, canvasHeight! - this.y - scrollBarSize!);
const panelHeight = Math.max(0, canvasHeight! - this.y);

this.width = panelWidth;
this.height = panelHeight;
Expand Down

0 comments on commit 05bea74

Please sign in to comment.