Skip to content

Commit 3ade111

Browse files
fix: spine figure
1 parent d484da1 commit 3ade111

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/webgal/src/Core/controller/stage/pixi

packages/webgal/src/Core/controller/stage/pixi/spine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export async function addSpineFigureImpl(
126126
const targetHeight = originalHeight * targetScale;
127127
thisFigureContainer.setBaseY(this.stageHeight / 2);
128128
if (targetHeight < this.stageHeight) {
129-
thisFigureContainer.setBaseY(this.stageHeight / 2 + this.stageHeight - targetHeight / 2);
129+
thisFigureContainer.setBaseY(this.stageHeight / 2 + (this.stageHeight - targetHeight) / 2);
130130
}
131131
if (presetPosition === 'center') {
132132
thisFigureContainer.setBaseX(this.stageWidth / 2);

0 commit comments

Comments
 (0)