I have an app that reads data from an sqlite file. Formerly, it wrapped the lines inside of a newTextBox I have created. For some reason, between earlier today and now, the textbox no longer wraps, but instead simply puts all the text on one long line and the textBox now scrolls horizontally (something I don’t want in this case). I checked to see if the updated build did this somehow, but even a build that I downloaded from the middle of December (same as the public release build), but I got the same thing. Given that it was working fine earlier today, I’m at a lost as to what might be causing this suddent switch. Any ideas? (BTW, here’s the code)
[lua] --content–
for row in db:nrows(sql) do
c = row.content
end
local scriptureText = native.newTextBox(0, 0, display.contentWidth*.8, display.contentHeight-107)
scriptureText:setReferencePoint(display.TopLeftReferencePoint)
scriptureText.x = 36; scriptureText.y = 52
scriptureText.font = native.newFont(“Times New Roman”,18)
scriptureText.text = c
scriptureText.hasBackground = false[/lua] [import]uid: 19999 topic_id: 20314 reply_id: 320314[/import]
[import]uid: 52491 topic_id: 20314 reply_id: 79373[/import]