Skip to content

Incorrect Zoom Level Applied When Dragging Files or Elements in Eclipse #309

@ShahzaibIbrahim

Description

@ShahzaibIbrahim

Description
When dragging and dropping a file from the Package Explorer or a field/method from the Outline view, the dragged item appears at an incorrect zoom level. Specifically, it uses the zoom level from the primary monitor at the time Eclipse was launched, rather than the current zoom scale of the active display. This issue is particularly noticeable in multi-monitor setups with different DPI settings and affects usability and positioning accuracy during drag-and-drop operations.

Reproduction
Steps to reproduce the behavior:

Scenario 1

  1. Start the runtime workspace with 175% zoom on primary monitor.
  2. Now change the display zoom from windows setting to 250%
  3. Try to drag the class or method from package explorer as showed below
  4. The dragged item looks bigger than the original one
20250519-0925-57.1484593.mp4

Scenario 2

  1. Start the runtime workspace with 175% zoom on primary monitor.
  2. Now move the window to secondary monitor with 150% Zoom
  3. Try to drag the class or method from package explorer as showed below
  4. The dragged item looks bigger than the original one
20250519-0927-30.9439028.mp4

Expected Behavior
The dragged item should be of the same size as it shows in the package explorer.

Necessary configuration:
Use these arguments before starting the runtime workspace:

-Dswt.autoScale=quarter
-Dswt.autoScale.updateOnRuntime=true

Metadata

Metadata

Labels

HiDPIA HiDPI-Related Issue or FeatureSWTIssue for SWT

Type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions