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 / Values X/Y/Width/Heigh...
Power Apps
Unanswered

Values X/Y/Width/Height keeps losing when switching between Landscape and Portrait mode

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I put my button's X value as "button1.X + button1.Width" so it can adapt when switching to portrait mode. However, the entire formula seems to be lost as I switch from landscape to portrait, even if I saved the app before making the switch. This happens to X,Y,Width,Height values as well, as if they weren't saved at all. I had to keep re entering the same formula over and over.

Categories:
I have the same question (0)
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    Are you saying you set a button's X value to button.X+button.Width?

    This will not work as you are referencing the X value to set the X value. It should throw an error saying this creates a circular reference.

     

    Can you please verify by running the app checker if you are getting this error? 

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Microsoft Business Applications MVP

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard