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 / Same expression in two...
Power Apps
Unanswered

Same expression in two controls returning different result

(0) ShareShare
ReportReport
Posted on by 4

Hi everyone, I need help with debugging my canvas app.

I have one screen with two buttons, and for height property of this buttons I used same formula 'varHeight*0.1' where varHeight is variable that is created on app start as 

Set(
varHeight,
Max(
App.Height,
App.DesignHeight
)
);

In edit mode everything is working as expected, but in play mode, and in powerapps app on my phone I have an issue because the height of this buttons is different. Here are screenshots:

Screenshot_2.pngScreenshot_3.png

so, as you can see on left side is my app opened in edit mode, where everything looks ok, and on right side is my app in play mode. I added label for debugging purposes where I put three numbers, varHeight variable, height of second button and height of first button. 

Does anybody have an idea what is happening here?

Categories:
I have the same question (0)

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#2
11manish Profile Picture

11manish 192

#3
Valantis Profile Picture

Valantis 128

Last 30 days Overall leaderboard