Skip to content

Commit 409411a

Browse files
committed
container step bug fixed.
1 parent 48a314a commit 409411a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/workspace/container-step/container-step-component-view.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ export class ContainerStepComponentView implements ComponentView {
2626
const height = sequenceComponent.view.height + PADDING_TOP + LABEL_HEIGHT;
2727
const joinX = sequenceComponent.view.joinX + PADDING_X;
2828

29-
LabelView.create(g, width / 2, PADDING_TOP, step.name);
29+
LabelView.create(g, joinX, PADDING_TOP, step.name);
3030

3131
const iconUrl = configuration.iconUrlProvider ? configuration.iconUrlProvider(step.componentType, step.type) : null;
32-
const inputView = InputView.createRectInput(g, width / 2, 0, iconUrl);
32+
const inputView = InputView.createRectInput(g, joinX, 0, iconUrl);
3333

34-
JoinView.createStraightJoin(g, new Vector(width / 2, 0), PADDING_TOP);
34+
JoinView.createStraightJoin(g, new Vector(joinX, 0), PADDING_TOP);
3535

3636
const regionView = RegionView.create(g, [width], height);
3737

0 commit comments

Comments
 (0)