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

Update available size and re-render when tool window was resized #25

Open
loopmode opened this issue Nov 22, 2015 · 2 comments
Open

Update available size and re-render when tool window was resized #25

loopmode opened this issue Nov 22, 2015 · 2 comments

Comments

@loopmode
Copy link

When the dev tool is launched in an undocked window with a given size, it uses that size for his own rendering space, but it doesn't update that when you resize the window, e.g. make it larger / full screen:

alt-devtool-height

@loopmode loopmode changed the title Use full height of devtools window Update available size and re-render when tool window was resized Nov 22, 2015
@goatslacker
Copy link
Owner

Is there a resize event I can listen to to force a render?

@loopmode
Copy link
Author

Hmm not sure - never did devtools development. So you don't have a window object in there?
Btw of course this isn't a serious Problem - i thought it's as easy as window.addEventListener('resize', () => this.forceUpdate()), if it's not that trivial, let's just close the issue and ignore the Problem :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants