Hello everyone,
While trying to integrate a newPickerWheel, I found all my texts cut in half. It really looked like they had their “anchorX” at 0.5 while being placed as in the “pre Corona Graphics 2.0” version. But I didn’t find any way to make it work (I’m using the build v2014.2189, not an old one so)
Does anyone have ever encountered this problem / found a way to solve it / have any idea to solve it ? Thanks !
My example :
local widget = require “widget”
local columnData = {}
– create first column
columnData[1] = { }
columnData[1].labels = { }
for i = 1, 31 do columnData[1].labels[i] = i end
columnData[1].startIndex = 1
– second column
columnData[2] = {}
columnData[2].labels = { “Janvier”, “Fevrier”, “Mars”, “Avril”, “Mai”, “Juin”, “Juillet”, “Aout”, “Septembre”, “Octobre”, “Novembre”, “Decembre” }
columnData[2].startIndex = 1
– third column
columnData[3] = { }
columnData[3].labels = { }
for i = 1900, 2014 do columnData[3].labels[(i-1900)] = i end
columnData[3].startIndex = 90
– create the actual picker widget with column data
local picker = widget.newPickerWheel {
x = display.contentCenterX,
y = display.contentHeight * .8,
fontSize = 20,
columns = columnData
}