web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerApp Designer calc...
Power Apps
Unanswered

PowerApp Designer calculation problem for Height / Width

(0) ShareShare
ReportReport
Posted on by 25

When I open my Canvas App in the PowerApp Designer I have several layout issues:

  • Variables App.Height / App.Width are not calculated / resolved
  • Power App Components don't display controls at the right calculated position

The example shows the usage of the App.Width ... should be 1366

 

2020-07-13_15-58-03.png

 

Value is correct shown:

2020-07-13_16-15-18.png

 

When I enforce a recalculation by changing the value (e.g. "+ 1"), the value is assigned correct and the control is displayed:

2020-07-13_16-15-56.png

 

When I reload / reopen the Designer, unfortunately everything is gone and my PowerApp is not longer editable.

 

Session Details:

Timestamp: 2020-07-13T14:20:21.392Z
Session ID: f71dfe90-c513-11ea-9315-0bae733ef77c
Tenant ID: 94d30528-464f-45a5-a95e-816428f57b90
Object ID: 0c07154b-6538-43e0-9a3c-0aedb2d51e75
Build name: 0.0.20200702.2-2006.5-prod
 
Version:
2020-07-13_16-22-22.png
 
On the other hand, the last published version looks as expected:
2020-07-13_16-24-32.png
 
How can I fix the problem?
Categories:
  • Mr-Dang-MSFT Profile Picture
    Microsoft Employee on at

    Hi @Michael-Megel ,

    I'm not able to replicate this. Can you share more about your setup? I attached an app with a component whose width is set to App.Width and it appears correctly upon opening in the studio.

     

    Let me know what additional steps are needed to reproduce your situation.

  • ShantanuP Profile Picture
    Microsoft Employee on at

    Hi @Michael-Megel , Does it work if you do save as of the app after fixing the rules and try to open the app again?  Also could you please confirm the session Id again when the issue occurs? I wasn't able to see any data for the shared session Id. Thanks.

  • Michael-Megel Profile Picture
    25 on at

    Hi @Mr-Dang-MSFT,

     

    I have imported the last working version into a fresh CDX Demo-Environment. The designer shows the same behavior. The App Checker does not provide information about issues:

    2020-07-15_21-27-23.png

     

    I can show you the problem or share my demo environment. 

    If you are interested, you can contact me by mail or teams: michael.megel@cosmoconsult.com

     

    BR / Michael

     

     

  • Michael-Megel Profile Picture
    25 on at

    @ShantanuP  where do I get the session id from designer?

     

  • ShantanuP Profile Picture
    Microsoft Employee on at

    @Michael-Megel , Under Account tab, you will find Diagnostics and session details below it. Just share information from there. 

     

    ShantanuP_0-1594843829908.png

     

  • Michael-Megel Profile Picture
    25 on at

    Hi @ShantanuP ,

     

    My current Prod-Environment Designer Session details

    Session ID: 32842644-54f2-40d6-bfa4-36d953d540fa
    PowerApps 3.20065.16

    Currently I have restructured in this environment some formulas. But I have still issues with my Custom Component "Menu".

     

    My Custom Component layout is correct displayed in designer:

    16-07-_2020_10-24-33.png

    I use a Gallery Control to display this icons:

    16-07-_2020_10-25-12.png

     

    the result in my screen view is:

    16-07-_2020_10-26-37.png

     

    This means, the X location of the 2nd Gallery (My Environments, New Environment) is calculated wrong. The formula in the custom control is: X := edActionsMenu.Width

    and edActionsMenu.Width is:
    16-07-_2020_10-42-54.png

    I guess there is anywhere a hidden calculation issue, which causes the wrong calculated Custom Component. I found out, when I fix the Custom Component by invoke "recalculation" of width, the layout in Screens is "better" until next Designer Session.
     
  • ShantanuP Profile Picture
    Microsoft Employee on at

    @Michael-Megel , Does it happen if you use any previous version of the studio? You can select previous versions from "Change authoring version" under Accounts tab. I want to understand if this is a regression.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard