Skip to content

Commit 651b80b

Browse files
fix(ui): remove extraneous syncPlaceholderSize method and calls
1 parent 5d236ae commit 651b80b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

invokeai/frontend/web/src/features/controlLayers/konva/CanvasStagingAreaModule.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,6 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
158158
);
159159
}
160160

161-
syncPlaceholderSize = () => {
162-
const { width, height } = this.manager.stateApi.getBbox().rect;
163-
this.konva.placeholder.rect.width(width);
164-
this.konva.placeholder.rect.height(height);
165-
this.konva.placeholder.badgeBg.width(Math.min(BADGE_MIN_WIDTH + 4, width - SPACING_2 * 2 + 4));
166-
this.konva.placeholder.text.width(Math.min(BADGE_MIN_WIDTH, width - SPACING_4));
167-
};
168-
169161
initialize = () => {
170162
this.log.debug('Initializing module');
171163
this.render();
@@ -246,7 +238,6 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
246238
} else {
247239
this.image?.destroy();
248240
this.image = null;
249-
this.syncPlaceholderSize();
250241
this.konva.placeholder.group.visible(true);
251242
}
252243

0 commit comments

Comments
 (0)