cancel
Showing results for 
Search instead for 
Did you mean: 

Aligned to center text comes out cut

ArthurStone
Associate

Hi,

I was placing text into a text area, and no matter what I do, it comes out cut from the sides.

the code:

 

 textArea1.setTypedText(touchgfx::TypedText(T_ID_PLACE_CART_IN_CARTON));
invalidate();
 
the result:
ArthurStone_0-1699966713230.png

I suppose it could be the bounding area, but how can I fix this?

 
1 REPLY 1

Hello @ArthurStone ,

Consider using static size for your Text Area and give it a size large enough to accommodate the text. You can specify the size your self through the designer by unchecking Auto-size
textArea.jpg

 I hope this helps you

 

Mohammad MORADI
ST Software Developer | TouchGFX