From 651b80b9979ccf62f4344309126fa1148b4e300c Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 27 Jun 2025 15:41:56 +1000 Subject: [PATCH] fix(ui): remove extraneous syncPlaceholderSize method and calls --- .../controlLayers/konva/CanvasStagingAreaModule.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasStagingAreaModule.ts b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasStagingAreaModule.ts index 1fa03daa56..120b000791 100644 --- a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasStagingAreaModule.ts +++ b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasStagingAreaModule.ts @@ -158,14 +158,6 @@ export class CanvasStagingAreaModule extends CanvasModuleBase { ); } - syncPlaceholderSize = () => { - const { width, height } = this.manager.stateApi.getBbox().rect; - this.konva.placeholder.rect.width(width); - this.konva.placeholder.rect.height(height); - this.konva.placeholder.badgeBg.width(Math.min(BADGE_MIN_WIDTH + 4, width - SPACING_2 * 2 + 4)); - this.konva.placeholder.text.width(Math.min(BADGE_MIN_WIDTH, width - SPACING_4)); - }; - initialize = () => { this.log.debug('Initializing module'); this.render(); @@ -246,7 +238,6 @@ export class CanvasStagingAreaModule extends CanvasModuleBase { } else { this.image?.destroy(); this.image = null; - this.syncPlaceholderSize(); this.konva.placeholder.group.visible(true); }