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 / How to make a checkbox...
Power Apps
Answered

How to make a checkbox height dynamic?

(0) ShareShare
ReportReport
Posted on by 8

Hello, 

 

I have put some checkboxes in a vertical gallery in a container, but when I play the app in "phone mode" the text in checkboxes overlap. For context, I am trying to convert a combo box to multi-select checkboxes, using Dataverse as Data Source. 

 

t_p_0-1705428001167.png

 

Is there a way for me to either wrap the text or set auto-height for the checkboxes like we can do for HtmlTextBox? 

 

Any help will be appreciated. 

 

Thank you,

Categories:
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @t_p,

     

    In case the checkbox height value doesn't need to be unique for each individual row, you can increase the TemplateSize of your gallery & Checkbox height depending on the screen size:

     

    //Gallery TemplateSize
    If(
     //Change ScreenName
     ScreenName.Size < ScreenSize.Medium,
     //Mobile height to avoid text overlap
     60,
     40
    )
    
    //Checkbox Height
    Parent.TemplateHeight

     

    This will increase the checkbox height for mobile devices (dependent on screen size breakpoints). Important to note is that all checkboxes will have the same height. It is not dynamic depending on the amount of text within each gallery row.

     

    Should you want a fully dynamic height for each row individually, you could use the following workaround:

     

    (1) Use a Flexible Height Gallery (TemplateSize depends on the required height of / amount of data in each row)

    (2) Use the Checkbox control only to display the checkbox (no Text value)

    (3) Use a Text Label to display the (current) checkbox text and set the AutoHeight property to true

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard