emilk / emilk/eframe_template

Incorrect canvas size in browser

Open
#184 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.2k
Forks
230
Avg merge
11m
Merged PRs (30d)
1

Description

I am seeing this issue when running the code in this repo verbatim with "trunk serve". Effectively, the UI does not appear to be rendering correctly in the browser, and I tested in both Firefox and Chromium. It looks like the UI "zooms in" immediately on load; it renders much too large for a fraction of a second and then disappears. Opening the developer console in Chrome doesn't show any useful log entries, but mousing over the canvas reports the canvas size as 22369600 x 22369600. Similarly, opening the developer console in Firefox reveals log entries about very large requested sizes. I also rolled the repo back to 0.29 and 0.28 and got the same result.

Firefox:

![Image](https://github.com/user-attachments/assets/04b61512-6632-457f-a8ea-6d0bd804a75a)

Chromium:

![Image](https://github.com/user-attachments/assets/56b55548-af57-48b7-b9b1-f1e31357ac5b)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.