vi-eclipse / Eclipse-Platform

Umbrella repository for managing a backlog of features/issues related to the Eclipse Platform
2 stars 0 forks source link

Tackle limitation of point coordinate system #125

Open akoch-yatta opened 1 month ago

akoch-yatta commented 1 month ago

There are some scenarios, e.g. with detached views in the IDE, where point to pixels conversion lead to unexpected results e.g. in something like this:

Point p = display.getCursorLocation();
p.x -= 100;
shell.setLocation(p);

If p.x -= 100; will lead to the point being placed on another monitor with different zoom, this can lead to a unexpected positioning of the shell.

Two ideas to evaluate: 1.) extend point and rectangle with a zoom attribute

2.) Create DisplayPoint and DisplayRectangle only for win32 as subclasses and use them in scenarios where a display related pixel to point conversion happen

akoch-yatta commented 1 month ago

Improved by PR #1524

akoch-yatta commented 2 weeks ago

As discussed in the daily, we will rediscuss this issue and possible solutions