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

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

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard