Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Web] incorrect windosw size in high resolution monitor #4517

Open
Sanlorng opened this issue Mar 20, 2024 · 2 comments
Open

[Web] incorrect windosw size in high resolution monitor #4517

Sanlorng opened this issue Mar 20, 2024 · 2 comments
Assignees
Labels
bug Something isn't working web windows

Comments

@Sanlorng
Copy link

Describe the bug
A clear and concise description of what the bug is.

Affected platforms

  • Web (K/Wasm) - Canvas based API

Versions

  • Kotlin version*: 1.9.23
  • Compose Multiplatform version*: 1.6.1
  • OS version(s)* (required for Desktop and iOS issues):
  • OS architecture (x86 or arm64): X86
  • Device (model or simulator for iOS issues):
  • JDK (for desktop issues):
  • Browser: Edge & Chrome

To Reproduce
Steps and/or the code snippet to reproduce the behavior:

  1. Create Compose Wasm Project.

  2. Open compose web app in a browser with 4k 150% scale Monitor

  3. Canvas can't fill the whole web content size.
    image

  4. if i changed the scale in the browser, if scale up, canvas' size will decrese, if scale down, canvas'size will increase.
    image
    image

  5. if i change monitor'setting to the 1080P 100%s scale,the canvas can fill whole web content size.
    image

Expected behavior
Compose web app can fill whole content size in the high resolution monitor.

Screenshots
See above.

Additional context
Add any other context about the problem here.

@Sanlorng Sanlorng added bug Something isn't working submitted labels Mar 20, 2024
@pjBooms pjBooms added web and removed submitted labels Mar 20, 2024
@Skaldebane
Copy link

Skaldebane commented Mar 25, 2024

This is not a Windows-specific issue. Happens on any browser on Linux and Android as well, and the main cause is zoom, whether manual in the browser, or system-wide like scaling settings.

@okushnikov
Copy link

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working web windows
Projects
None yet
Development

No branches or pull requests

5 participants