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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using Containers for R...
Power Apps
Answered

Using Containers for Responsiveness and Components Together

(0) ShareShare
ReportReport
Posted on by 146

Howdy guys. Did my searching on this, but couldn't come up with anything.

 

Still learning.  Built a simple 3-screen app, and am now working on reworking that app from a blank canvas. Namely to put things where I want them and make everything responsive (using what seems like 1000+ containers 🙂 ).

 

As I'm starting on the second screen, I realize I'm repeating the header and the menu navigation.  I figure this is a good time to learn components.  But it seems that all the cool things that containers do to make things responsive won't work in a component. Namely, obviously can't use things like "parent.width and parent.height".  Also variables that I use in a header obviously aren't visible from a component (I set some things through variables like standard colors, fonts, etc).

 

Are containers and components two elements that don't really play well together?

Categories:
I have the same question (0)
  • Verified answer
    iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    In a component, instead of using Parent.Width use ComponentName.Width 🙂

     

    As for the variables, pass those into the component as inputs (of whatever type you need, ie color, text etc), then you can reference them within the component 🙂

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard