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 / Shrink a container in ...
Power Apps
Answered

Shrink a container in mobile experience

(0) ShareShare
ReportReport
Posted on by 38

Hello

 

I have the below app that will be userd in both web and mobile, the 2 cards on top should be reordered when the app is used on the mobile

 

MohanadElsayed5_0-1703638729947.png

I want the white and colored cards to shrink not resize, by shrink I mean like you shrink an image, all the component withen this container will remain in the same locations in relation to each other, as the below screenshot shows, I successfuly managed to reorder the cards based on the screen size and fix the card size if the screen width is below 400

how can I manage to shrink the control and all its controls? I don't want to manage each control seperatly, I think there should be a way to handle this use case

 

MohanadElsayed5_1-1703638769819.png

 

and thanks

Categories:
I have the same question (0)
  • Verified answer
    MissingLink Profile Picture
    236 on at

    Hi @MohanadElsayed5 

    I had a similar issue a while back.  I found that I needed to create a ton of custom properties for each object in the component.   

    So something like Card_1_Width, Card_1_Height, Card_1_Label_Width, Card_1_Label_Height, Card_1_TextField_Width, Card_1_TextField_Height, Card_1_Image_Width etc etc.

     

    Then set the default properties of each, to the Custom properties as follows

    Card_1.Width = Card_1_Width,

    Card_1.Height = Card_1_Height,

    Card_1.Width = Card_1_Label_Width etc.

     

    Finally, set the default values for the CUSTOM properties as follows.

    Card_1_Width.default =If(parent.width < 99, 45, 150)

     

    Does that work for you?

  • MohanadElsayed5 Profile Picture
    38 on at

    seems like alot of work for me, I have too many controls that it'll be a nightmare to do this solution

    I think there's an easier way to do it

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 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard