Skip to content

Commit

Permalink
resolve PR
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonreid committed Mar 14, 2024
1 parent 61d88c1 commit c1ff30e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/factories/flowRunArtifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ export async function flowRunArtifactFactory<T extends ArtifactFactoryOptions>(o

const x = scale(date) * viewport.scale._x + viewport.worldTransform.tx
const centeredX = x - (element.width - selectedOffset) / 2

const bottomOffset = flowHasEvents && !settings.disableEvents ? eventTargetSize : flowStateSelectedBarHeight
const y = application.screen.height
- (element.height - selectedOffset)
- (flowHasEvents && !settings.disableEvents ? eventTargetSize : flowStateSelectedBarHeight)
- bottomOffset

element.position.set(centeredX, y)
}
Expand Down

0 comments on commit c1ff30e

Please sign in to comment.