PickerWheel - texts halfed

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

    }

Hi @corona7219,

This can be fixed by specifying the “align” property for each column to a value of either “left”, “center”, or “right”, like so:

[lua]

columnData[1].align = “left”

[/lua]

However, this is the result of a minor bug… that property should be optional, with default of “center”. I just submitted a bug report to the engineers and the case is #31914.

Best regards,

Brent

Hi @corona7219,

This can be fixed by specifying the “align” property for each column to a value of either “left”, “center”, or “right”, like so:

[lua]

columnData[1].align = “left”

[/lua]

However, this is the result of a minor bug… that property should be optional, with default of “center”. I just submitted a bug report to the engineers and the case is #31914.

Best regards,

Brent