I have three pickerwheels in the same scene. They all work fine in build 1082, but fail dramatically in build 1093
Here is the code, which you can test as standalone main.lua
…
local widget = require "widget" local timePicker, offersPicker, coversPicker local phours = {} for i = 1, 24 do phours[i] = i-1 end local pmins = {} for i = 1, 4 do pmins[i] = (i-1)\*15 end pmins[1]='00' local columnData1 = { { align = "center", width = display.contentWidth/2, labels = phours }, { align = "center", width = display.contentWidth/2, labels = pmins } } timePicker = widget.newPickerWheel { left = 0, top = 100, font = native.systemFontBold, fontSize = 30, columns = columnData1 } local pcovers = {} for i = 1, 40 do pcovers[i] = tostring(i).. ' cover' if i \> 1 then pcovers[i] = pcovers[i] ..'s ' else pcovers[i] = pcovers[i] ..' ' end end local columnData3 = { { align = "center", labels = pcovers } } coversPicker = widget.newPickerWheel { left = 0, top = 350, font = native.systemFontBold, fontSize = 26, columns = columnData3 } local offers = {} for i = 1, 10 do offers[i] = i..' test' end local columnData2 = { { align = "left", width = display.contentWidth, labels = offers } } offersPicker = widget.newPickerWheel { left = 0, top = 600, font = native.systemFontMain, fontSize = 18, columns = columnData2 }
You will see that the third pickerwheel isn’t being populated correctly.
Move an pickerwheel and it crashes.
The above code works fine in build 1082 and prior.
Also, right column justification doesn’t work.