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 / I've "solved" my probl...
Power Apps
Unanswered

I've "solved" my problem but don't know why... Parent.Width doesn't work right but App.Width does. Many containers and forms

(0) ShareShare
ReportReport
Posted on by 235

Hi everyone.

 

I have a rather complex layout for forms and containers... see attached.

Whenever the containers had Parent.Width when I initially opened the screen, some of the forms and/or containers had a width of zero when they should be showing because their parent had a proper width so the screen showed up all white.  This would be remedied if I hit a toggle button to expand/contract a container or, now, simply trying to scroll a bit make the containers and forms appear.

I checked the width on every container in the hierarchy and I had missed a few, changing them to App.Width solved the problem

 

It seems like when my app first loads, the App doesn't know anything about Parent until some action happens.  This is in Play mode.  In preview Parent.Width is sufficient but in Play mode, not so.  And when you look or do a hover event to show the width of say, Container11, it's zero even tho it's parent has width.   Touch the screen a little (scroll b/c I'm on a laptop) and it magically appears.  Again, the problem shows up only in Play mode.   I wish I could understand this better.  Attached is an image of my perhaps overly complex layout and maybe I should eliminate forms and use containers only but that has its own layout problems and the data cards make it simultaneously more difficult and easier.  

 

Any response to help me understand this better are very welcome.  Also if my architecture is overly complex suggestions are welcome as well.  Cheers.

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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard