Hi all, I'm having an issue with the Compose canva...
# compose-web
d
Hi all, I'm having an issue with the Compose canvas size. When I run my Compose app using the
wasmJsBrowserDevelopmentRun
task, everything works fine — the canvas takes up the full size of the browser window. However, when I serve the same compiled WASM code (using the
wasmJsBrowserDistribution
task) with my own Ktor server, the canvas height is only 308px. I can't understand where the difference is coming from. Any ideas? Thanks in advance
Copy code
ComposeViewport(document.body!!) {
    App()
}
1
Oh, magic happened again: All it takes is writing the question — and the answer shows up) I simply forgot to set ContentType.Text.CSS while serving css files. That was the reason