Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • MohanadElsayed5 Profile Picture
    38 on at
    Re: Shrink a container in mobile experience

    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

  • Verified answer
    MissingLink Profile Picture
    236 on at
    Re: Shrink a container in mobile experience

    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?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard