alt-devtool icon indicating copy to clipboard operation
alt-devtool copied to clipboard

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

Open loopmode opened this issue 9 years ago • 2 comments
trafficstars

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 avatar Nov 22 '15 14:11 loopmode

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

goatslacker avatar Nov 23 '15 00:11 goatslacker

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 :)

loopmode avatar Nov 25 '15 18:11 loopmode