Hi All
If I have a label inside a custom view and try to use MeasureMultilineTextHeight on it then I get an error Layout: -31 < 0
If I move the label outside the custom view it works just fine. I've tried several work arounds and short of somehow using a hidden panel to generate one off copies of labels to get their height I just can't figure it.
I also looked at a canvas approach but because you can't force the text width to allow wrapping to multiple lines you cant get the height - someone correct me if I have that wrong.
Any suggestions?
Regards
Jon
If I have a label inside a custom view and try to use MeasureMultilineTextHeight on it then I get an error Layout: -31 < 0
If I move the label outside the custom view it works just fine. I've tried several work arounds and short of somehow using a hidden panel to generate one off copies of labels to get their height I just can't figure it.
I also looked at a canvas approach but because you can't force the text width to allow wrapping to multiple lines you cant get the height - someone correct me if I have that wrong.
Any suggestions?
Regards
Jon