Scroll line appears when using Picker on Windows Sim?

Windows Simulator (iPad) 2011.591

[code]local widget = require “widget”

local pickerColumn = { data = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}, width = 300}

local testrect = display.newRect(0,0,768,1024)
testrect:setFillColor(35,35,72)

local choose = widget.newPickerWheel{ column1 = pickerColumn }
choose.x = 140
choose.y = 300[/code]

I really have no idea how to explain this, but would love to hear if it’s just me or not. You may need to either hit CTRL+R rapidly or hook it up to a button. When I do - I can see what looks like the thin-line scrollbar (the one you’d see on your iPhone when scrolling through emails) at the top middle edge of the screen.

I tried disabling the picker but the problem disappears if the picker isn’t there. No error messages and yes, happens after a full reboot and sim close/open. Maybe some legacy code?

(The bar only appears when the picker does - it fades out within 500ms.) [import]uid: 41884 topic_id: 15271 reply_id: 315271[/import]

Definitely still happens; if you can make the wheel crash you can get a better look at it.

Something else I’m noticing, hard to tell if it’s part of the construction of the widget: If you spin the wheel quite fast and then delete it (“close” it, so to speak), I get the always helpful error:

?:0: attempt to index field 'contentBounds' (a nil value) stack traceback: [C]: ? ?: in function <?:3800> ?: in function <?:215>

I suspect its some sort of instability caused by the scrolling layer as:
a) I’m not calling contentBounds at all in relation to it.
b) If you wrap the picker in a displayGroup it’s pretty easy to see that there’s quite a bit of “invisible space” below the picker that gets added. [import]uid: 41884 topic_id: 15271 reply_id: 58528[/import]

Hey there, please see supported versions here;
http://developer.anscamobile.com/reference/index/widgetnewpickerwheel [import]uid: 52491 topic_id: 15271 reply_id: 58566[/import]

Not sure what you are trying to say? This is all based off the latest public build, which seems to line up with the version number listed on that API page. [import]uid: 41884 topic_id: 15271 reply_id: 58571[/import]

Sorry, maybe this link would have been clearer; http://developer.anscamobile.com/content/widget

You’re using Windows which doesn’t currently have official support for widgets. (See how on the original link Windows doesn’t list a supported version?)

Apologies,
Peach [import]uid: 52491 topic_id: 15271 reply_id: 58689[/import]

That link is actually less clear; it would hint that only iOS is supported and not OSX. Your original link makes some sense now, though the basic problem is that widgets were introduced into the windows public build. So either they shouldn’t be, or these threads can hopefully serve as a nice reference for the dev team in a few months when they look to stabilizing Windows support.

I was under the impression Windows was supported because of the update log and because the major newTableView bug I posted turned out to affect OSX and Windows equally. I stand corrected. :slight_smile: [import]uid: 41884 topic_id: 15271 reply_id: 58731[/import]