From fddc5794951f846041d6f20e1506bab4d05c1f99 Mon Sep 17 00:00:00 2001 From: linwrui Date: Fri, 8 Nov 2024 14:14:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E8=A1=A8=E5=BA=95=E9=83=A8=E5=AD=98=E5=9C=A8=E7=A9=BA=E7=99=BD?= =?UTF-8?q?=E8=A1=8C=E7=9A=84=E9=97=AE=E9=A2=98=20(#2958)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/s2-core/src/facet/bbox/panel-bbox.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/s2-core/src/facet/bbox/panel-bbox.ts b/packages/s2-core/src/facet/bbox/panel-bbox.ts index b76af3b444..83dd72ac50 100644 --- a/packages/s2-core/src/facet/bbox/panel-bbox.ts +++ b/packages/s2-core/src/facet/bbox/panel-bbox.ts @@ -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;