mirror of
https://github.com/streamwall/streamwall.git
synced 2025-12-06 01:45:37 -05:00
Fix x/y (in screen space) being used for view bounds (in window space)
This commit is contained in:
@@ -85,7 +85,8 @@ const viewStateMachine = setup({
|
|||||||
offscreenView: ({ context }) => {
|
offscreenView: ({ context }) => {
|
||||||
const { view, win } = context
|
const { view, win } = context
|
||||||
win.contentView.addChildView(view, 0) // Insert below background (so hidden by background)
|
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 }) => {
|
positionView: ({ context }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user