Skip to content

alecam/powerapp-canvas-position-issue

Repository files navigation

Bug description:

While "Scale to Fit" and "Lock aspect ratio" are disabled, Canvas PowerApps on the device will not register correct coordinates of html click event on the screen.

Steps to reproduce:

  1. Create a new Canvas App (Phone format)
  2. In Settings, Display, disable "Scale to Fit" and "Lock aspect ratio"
  3. Import the MapComponent code component
  4. Set the MapComponent properties as follow:
    • ScreenOrientation: App.ActiveScreen.Orientation
    • ScreenWidth: App.ActiveScreen.Width
    • ScreenHeight: App.ActiveScreen.Height
    • Width: App.ActiveScreen.Width
    • Height: App.ActiveScreen.Height
  5. Publish the PowerApp and test it on a Smartphone
  6. Rotate the device in landscape mode you will an image. Clicking on the image (eg. on the right side of it), you will see that the property "clientX" of the html click event shown in the alert, is not compliant to where you really clicked on the screen (it appears to be half of the pixels)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published