You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Important setup: the primary monitor is at 200% and the second monitor is on 100% and placed right from the 200% monitor
The problem occurs, when a view is dragged from the 200% monitor to a position on tje 100% monitor. The new view will not be visible after that, because it is position out of sight.
As far as I have investigated, the flow is as follows:
a new Shell is created und it inherits the zoom from the parent or uses it from the primary monitor (=200%).
the position is set (from WBWRenderer::createWidget) to its target position, e.g. mouse drop at position 4000/200 (is on 100% monitor)
Shell:.setBounds is called with point 4000/200
Shell has zoom of 200% and there the points will scaled up to 8000/400 and positioned out of sight.
There will be no DPI changed event, because the shell was never positioned correctly on the second monitor.
Question is, what is the expected behaviour here. I see two different options:
The caller takes care of this
Hard to achieve, because the target location comes from the OS (= drop location of the mouse cursor). How should the caller adept to this (windows specific) behaviour
Shell:setBounds takes care of this
Probably easier to achieve. This would mean that setBounds must be adapted to:
calculate monitor where the the shell will be placed onto (see org.eclipse.jface.util.Util::getClosestMonitor)
adapt nativeZoom attribute the zoom of the monitor
The text was updated successfully, but these errors were encountered:
Important setup: the primary monitor is at 200% and the second monitor is on 100% and placed right from the 200% monitor
The problem occurs, when a view is dragged from the 200% monitor to a position on tje 100% monitor. The new view will not be visible after that, because it is position out of sight.
As far as I have investigated, the flow is as follows:
There will be no DPI changed event, because the shell was never positioned correctly on the second monitor.
Question is, what is the expected behaviour here. I see two different options:
Hard to achieve, because the target location comes from the OS (= drop location of the mouse cursor). How should the caller adept to this (windows specific) behaviour
Probably easier to achieve. This would mean that setBounds must be adapted to:
The text was updated successfully, but these errors were encountered: