Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Problem with custom view with multiline UILabel

$
0
0

I'm creating a custom control from the ground.

It basically has two labels inside a view, the view is resized based on the content of the labels (font, lines).

All works as expected unless the labels has more than a line, when it happens the other forms controls adjust themselves as if the control has just one line, even if the frame of the control is correctly set.

Here is an screenshot of the controls inside a page with just one line.

Here everything fits perfectly.

But when there is more than a line...

All controls are mounted...

I cannot understand what's happening, it's just with the multiline on the second label, if I leave it with just a line and duplicate the size it works perfectly, is like if the page when is setting the sizes if there is a child with multiple text lines only takes in account half the size...

Any ideas?

Cheers!


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>