project-path-feat #7

Merged
roman merged 16 commits from project-path-feat into master 2023-02-17 08:18:42 +00:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit 6885db162e - Show all commits
+1 -1
View File
File diff suppressed because one or more lines are too long
+5 -1
View File
@@ -8,7 +8,11 @@ export function setupFrameResizeListener() {
} }
const data = JSON.parse(e.data.substring(RESIZE_CODE.length)) const data = JSON.parse(e.data.substring(RESIZE_CODE.length))
previewFrame.style.height = data.height + 'px' let height = Number.parseInt(data.height)
if (height > 20000) {
height = 20000; // Limit max height.
}
previewFrame.style.height = height + 'px'
}); });
} }