Skip to content

Replace Workaround for MultipleHyperlinkPresenter #355

@akoch-yatta

Description

@akoch-yatta

Description
In this PR we added a workaround to get rid of unnecessary scrollbars. With the introduction of float precision in some rectangle, we should evaluate how a proper solution (perhaps with API changes) would look for this issue

Reproduction
Without the workaround with certain zoom settings (e.g., 125%, 175% or 225%, usually primary must be smaller than the secondary), the calculated size may be too small, causing the Composite to show Scrollbars, although it calculated to not need scrollbars.
Image
With the workaround the Shell can be way too big (Primary 150%, secondary 100%):
Image

Expected Behavior
No workaround added in the code
No unnecessary scrollbars in the Shell
Shell not wider than expected

Necessary configuration:

Depending on the scenario, monitor specific scaling is active + different zoom on primary and secondary

Additional knowledge

Metadata

Metadata

Assignees

No one assigned

    Labels

    HiDPIA HiDPI-Related Issue or FeatureSWTIssue for SWT

    Type

    No type

    Projects

    Status

    👀 In Review

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions