Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Label's content is being cropped in a stackview

I am showing two labels in a stackview as shown in the image below. I would like the first label to show its full content. For this, I tried making its horizontal content hugging priority as well as its horizontal content compression resistance priority higher than the other label. Still i am getting the cropped label as in the image. Isn't this supposed to work? How do I get the desired result? The stackview's alignment is set to 'Fill' and its distribution to 'Fill Proportionally'.

enter image description here

like image 532
Sujal Avatar asked Dec 22 '25 09:12

Sujal


1 Answers

Set the distribution to “Fill”, not “Fill Proportionally”.

like image 162
rob mayoff Avatar answered Dec 24 '25 00:12

rob mayoff



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!