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 / No auto height for com...
Power Apps
Unanswered

No auto height for combo boxes is display forms?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I'm trying to get the display form (see image) to auto-size, based on the data cards in the form, but there does not seem to be auto height option for combo boxes inside a card, where multiple items are listed. I'm a little confused why some items have an auto-height feature and others don't. How can I get the combo boxes to size to the data, so the card (which is set to DataCardValue2.Height+10) will size correctly. 

 

screenshot.jpg

 

Separately, but related, any way to have these display as a bulleted list that auto-sizes?

 

Thank you.

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous :

    You can dynamically set its height according to the length of the text to be displayed in this combo box.For example,set the combo box's Height property to:

    (I assume that I need the text to be arranged in a line with 35 characters, and the height of each line is greater than 50)

    RoundUp(
     Len(
     Concat(Self.SelectedItems,Value) /*Get the string to be displayed in the combobox*/
     )/35 /*get the number of rows*/,
     0
    )*50

     Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for your quick response @v-bofeng-msft 

     

    I understand the notion of the formula, but not the mechanics exactly. Can you please explain the 35, 0, and 50 values? I've been playing with the 35 and 50 values in an effort to dial the formula, but I am getting inconsistent results. For some records I get a larger than desired white space below, and for others records, where I expect the height to expand to two lines, it does not, resulting in vertically center-aligned text, and the "more..." text, or the scroll wheel. Even though the two data cards match in their properties (width, etc.), what works better on one, does not translate to the other, and I can only guess that is because of the exact length of the particular record. I tried to add a +10 to the end of the formula, but that vertically center-aligns the text when the value is "none". 

     

     

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous :

    • 35 refers to the capacity of characters in each line
    • 50 refers to the height of each row

    I noticed that there are about 60 characters in one line in your screenshot, so you can change 35 to 60 to reduce the number of blank lines as much as possible. 

    RoundUp(
     Len(
     Concat(Self.SelectedItems,Value) /*Get the string to be displayed in the combobox*/
     )/60 /*get the number of rows*/,
     0
    )*40

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks again @v-bofeng-msft. I've been tweaking and tweaking the values, but cannot seem to get a consistent enough behavior. I either get larger than desired gaps below the content, or it cuts off, and I get the "more..." or scroll bar. There doesn't seem to be a happy medium between. I do see how this formula works with content that is consistent (within a fixed or more limited range of characters). But, I have content where one record might have no content and another record with lines of content.

     

    Any ideas on getting more consistent behavior across records with a large variation between the data that is pulled?

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
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard