Fix x/y (in screen space) being used for view bounds (in window space)

This commit is contained in:
Max Goodhart
2025-07-04 18:11:00 -07:00
parent cc8baead06
commit f22f04b3d6

View File

@@ -85,7 +85,8 @@ const viewStateMachine = setup({
offscreenView: ({ context }) => {
const { view, win } = context
win.contentView.addChildView(view, 0) // Insert below background (so hidden by background)
view.setBounds(win.getBounds())
const { width, height } = win.getBounds()
view.setBounds({ x: 0, y: 0, width, height })
},
positionView: ({ context }) => {