How to prevent display text from exceeding the viewable screen?

Hi there great people. I wonder how to prevent the display text from exceeding the viewable width. By the way, I am using zoomEven as the scale. Any help will be much appreciated.

Use the width parameter. If the text exceeds the width, it will wrap to a new line. See the documentation: http://docs.coronalabs.com/api/library/display/newText.html

Yup… I did usedthat butit still going on to the bleeding side of the screen which is not viewable. 

Code would be helpful. What does your config file look like?

zoomEven will have some areas bleed off the screen.  You just have to make the width of the text string short enough that it won’t bleed off. 

Rob

Hey James, this is my config file

application = {

content = {

width = 768,

height = 1024, 

scale = “zoomEven”,

fps = 30,

},

}

Rob, how bout if the text is long and im expecting it to go down on the right border of the viewable screen

I’m not sure I follow your description and needs? 

Rob

Use the width parameter. If the text exceeds the width, it will wrap to a new line. See the documentation: http://docs.coronalabs.com/api/library/display/newText.html

Yup… I did usedthat butit still going on to the bleeding side of the screen which is not viewable. 

Code would be helpful. What does your config file look like?

zoomEven will have some areas bleed off the screen.  You just have to make the width of the text string short enough that it won’t bleed off. 

Rob

Hey James, this is my config file

application = {

content = {

width = 768,

height = 1024, 

scale = “zoomEven”,

fps = 30,

},

}

Rob, how bout if the text is long and im expecting it to go down on the right border of the viewable screen

I’m not sure I follow your description and needs? 

Rob