Skip to content

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

Description

@AmadeusW

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions