Skip to content

UI scaling approach #4963

Closed
Closed

Description

@itg-assistant

Miguel asked 2026-04-15 12:20:28 UTC

I'm trying to handle a scaling/DPI issue - the app was designed at 100% OS scaling on a 1920×1080 desktop, but users on laptops with 125% or 150% Windows display scaling see the UI as oversized. The only way for them to get the designed layout is to manually set browser zoom to 80–90% or adjust the display scaling on the laptop.

I'd like to apply this scaling automatically based on Application.Browser.PixelRatio so users don't have to adjust browser zoom themselves.

What's the recommended approach for this?

I've experimented with CSS zoom on various elements (document.body, the qx-root) combined with qx.bom.Viewport.getWidth/getHeight overrides and resize dispatches. I can get layout to reflow correctly, but each approach has tradeoffs (popup positioning offsets, AutoSize text measurement issues, etc.) — which makes me think I'm fighting the framework rather than using a supported pattern.

Is there a native API or recommended technique for proportionally scaling the entire UI based on detected DPI? Or is manual browser zoom the only supported path?

I'm using Wisej version 4.0.11 currently and testing with MS Edge and Chrome browsers.

Any assistance would be appreciated!

Activity

  1. itg-assistant commented on Jun 17, 2026

    @itg-assistant
    Author

    JD answered 2026-04-15 13:30:38 UTC

    Browsers don’t let you change the zooming level programmatically. It’s not a wisej issue.

    Also browsers don’t react on dpi. You can change the app layout to be proportional using anchoring, docking, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions