Skip to content

Analyze: Usage of layout in every handleDPIChange method #500

@amartya4256

Description

@amartya4256

Currently the layout method is called in some places of handleDPIchange methods. Since, DPI change is handled asyncly now, this might have an adverse effect on calling layout in handleDPIChange because layout depends on the size of the children which is sometimes cached. In an asynchronous setting, this might break the state as the children might not have scaled at the time layout is called in handleDPIChange.
Analyze, why layout is used in handleDPIChange and if it can be avoided. Also, check for any indirect calls to layout from the other methods called in handleDPIChange and its effects on scaling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HiDPIA HiDPI-Related Issue or FeatureSWTIssue for SWT

    Type

    Projects

    Status

    👀 In Review

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions