Skip to content
Snippets Groups Projects
Commit 931508db authored by Glenn Fischer's avatar Glenn Fischer
Browse files

#2404: fixes infinite loop when viewer's height equals 0

parent 5321f3f2
Branches
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ export class WindowViewer extends Component {
}
// only accept changes of at least 1 pixel, to limit the re-rendering
if (!height || Math.abs(height - size.height) > 1) {
if (typeof height === 'undefined' || Math.abs(height - size.height) > 1) {
setWindowHeight(windowId, size.height);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment