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

bug: Garmin 9k font size wrong in 1/2 and 1/4 layout #469

Open
mman opened this issue Jan 29, 2025 · 0 comments
Open

bug: Garmin 9k font size wrong in 1/2 and 1/4 layout #469

mman opened this issue Jan 29, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mman
Copy link
Collaborator

mman commented Jan 29, 2025

Garmin 9k is 4k screen with physical resolution of 3840 × 2160 with 1px/pt mapping.

However when the app runs in 1/2 and 1/4 size of the screen, the Garmin browser incorrectly reports back screen dimensions as seen in the following screenshots:

1918 * 2 = 3 836
989 * 2 = 1 978

These are the complete measurements:

  • 1/4: 1918 x 989 1px/pt
  • 1/2h: 1918 x 1982 1px/pt
  • 1/2v: 3840 x 989 1px/pt

~ 178px (10%) consumed vertically always.
~ 4px consumed horizontally in split modes.

It is therefore impossible (so far it seems) to determine proper font size for 1/4 layout...

For 1/2 layout we should use an or media query rule checking both horizontal and vertical screen resolution.

Image

@mman mman added the bug Something isn't working label Jan 29, 2025
@mman mman self-assigned this Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant