Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window.resizeTo does not resize the window #1417

Open
ElPrudi opened this issue Apr 26, 2024 · 0 comments
Open

window.resizeTo does not resize the window #1417

ElPrudi opened this issue Apr 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ElPrudi
Copy link

ElPrudi commented Apr 26, 2024

Describe the bug
According to mdn window.resizeTo() dynamically changes the size of the outer viewport of the window. Happy-dom doesn't do that.

To Reproduce

import { Window } from 'happy-dom'

const window = new Window({ width: 1920, height: 1080 })
window.resizeTo(300, 300)
console.log(window.outerWidth, window.outerHeight) // Still 1920 and 1080

Expected behavior
It should change the width and height of the window.

Device:

  • OS: Windows 11
  • Version 14.7.1
@ElPrudi ElPrudi added the bug Something isn't working label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant