CodeConnect/TouchVS

VS window reports incorrect position until restored -> Touch control's position is wrong

AmadeusW opened this issue · 0 comments

The effect of this bug is that the TouchVS control is placed in a wrong place - it's slightly off to the side.

To reproduce: Visual Studio starts maximized. Attempt to start TouchVS. It will be placed in a wrong place.
To fix: Restore Visual Studio. Attempt to start TouchVS. It will be placed in a correct place

Strangely, before VS is restored, Application.Current.MainWindow reports incorrect position of Visual Studio. Only restoring VS and running this function fixes reported coordinates. Then, the control is placed in the correct location.

Relevant piece of code is FixCoordinates extension method.