2024-08-05 02:01 PM
I have a TextArea that spans the full width of my screen:
I've selected "center" alignment:
However, when I dynamically set the text at runtime,
Unicode::fromUTF8(merchant_name_data, merchant_nameBuffer, MERCHANT_NAME_SIZE);
merchant_name.resizeToCurrentText();
merchant_name.invalidate();
It ends up left-justified:
? Thanks.
Solved! Go to Solution.
2024-08-05 02:04 PM
My mistake, obviously I'm resizing the text area.
merchant_name.resizeToCurrentText(); // Don't do that
2024-08-05 02:04 PM
My mistake, obviously I'm resizing the text area.
merchant_name.resizeToCurrentText(); // Don't do that