Multiline label

Solved!
Posted in General by Vyacheslav Baydikov Sun Jan 10 2016 20:35:46 GMT+0000 (UTC)·8·Viewed 581 times

Hi! I want to create multiline text in CocosStudio. I use label. For example, my text is: "Label1 Label2 Label3 Label4 Label4 Label5 Label6 Label7 Label8 Label9 Label10 " I set "Custom Size" for this label. But, I see empty space below of label text (I set height as 200px) http://screencast.com/t/FeRkeqqDLbv Then, I set height as 400px http://screencast.com/t/tagM9Afyxs But the empty space was increased. How I can to fix this issue? Or, maybe, I should use other element, than a label ? Thanks
Frahaan Hussain
Jan 11, 2016

Reduce the height


Frahaan Hussain marked this as solved
Vyacheslav Baydikov
Jan 11, 2016

Sorry, but I provided two screens with label height as 200px and 400px.
You can see that my text consist of 10 words.
In case 200px the text doesn't fit in label, but in case 400px space below of text is very big and the text doesn't fit in label too.

Did you try to repeat this issue in CocosStudio ?

Vyacheslav Baydikov
Jan 11, 2016

I will be very happy if you show me your screen from CocosStudio with correct label with long text.

Frahaan Hussain
Jan 11, 2016

Just have a larger label, there shouldn't be any issue.

Vyacheslav Baydikov
Jan 11, 2016

This label has dynamic text. So, the height isn't constant.
Can I make the height of label depending of text length from CocosStudio?

Frahaan Hussain
Jan 11, 2016

Set it via code, that will be best.

Vyacheslav Baydikov
Jan 11, 2016

Ok, thank you.

Frahaan Hussain
Jan 11, 2016

Your welcome

Markdown is allowed