You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local MthPmtText = RNFactory.createText("Monthly Payment $", {size = 36, top = 0, left = 0, width = 200, height = 40, alignment = MOAITextBox.LEFT_JUSTIFY })
local MthPmtTextVal = RNFactory.createText(comma_value(mPmt), {size = 36, top = 0, left = 201, width = 200, height = 40, alignment = MOAITextBox.RIGHT_JUSTIFY })
I would think the above code should display the text at the same Y position, in this case 0. But it seems to actually display the LEFT_JUSTIFIED version a few pixels too high (maybe about 5?).
The text was updated successfully, but these errors were encountered:
Hi BenM1111,
you are right!
This happens because when you set alignment like in the code you posted, both vertical and horizontal alignments are set to LEFT or RIGHT.
This is made due to chinese language compatibility.
If you want to set only one of them you should use:
local MthPmtText = RNFactory.createText("Monthly Payment $", {size = 36, top = 0, left = 0, width = 200, height = 40, alignment = MOAITextBox.LEFT_JUSTIFY })
local MthPmtTextVal = RNFactory.createText(comma_value(mPmt), {size = 36, top = 0, left = 201, width = 200, height = 40, alignment = MOAITextBox.RIGHT_JUSTIFY })
I would think the above code should display the text at the same Y position, in this case 0. But it seems to actually display the LEFT_JUSTIFIED version a few pixels too high (maybe about 5?).
The text was updated successfully, but these errors were encountered: