ScrollView bgColor problems (build 786)

Not sure if I am just doing something stupid here, but my scrollView bgColor seems to be really messed up. From the docs, bgColor can be set by passing an array of {r,g,b,a} values. When I try and set ‘red’ - 255,0,0,255 - it displays yellow?!

My test code:

local widget = require("widget")  
display.setStatusBar(display.HiddenStatusBar)  
  
scrollHead = widget.newScrollView{  
 bgColor = {255,0,0,255},  
 scrollWidth = 320,  
 scrollHeight = 160  
}  
myObject = display.newImage("assets/images/animals/Monkey\_head.png")  
scrollHead:insert(myObject)  

I can see the alfa channel works, and 0,0,255,255 displays blue, 255,255,255,255 displays white - but nothing else seems to display correctly. [import]uid: 140429 topic_id: 25627 reply_id: 325627[/import]

Verified. Bizarre. Looks like the table interpreter has a problem.

-- Faster repro code (main.lua) local widget = require("widget") local options = { bgColor={0,255,255,255} } -- blue -- local options = { bgColor= {255,0,0,255} } -- yellow local scrollView = widget.newScrollView(options)

Filed a bug on your behalf. (13909) [import]uid: 41884 topic_id: 25627 reply_id: 103619[/import]

Thanks for bring this up and thank you Richard for filing, will bring this up in our next meeting. [import]uid: 52491 topic_id: 25627 reply_id: 103687[/import]

Hello thank you for the bug report.

I have fixed this issue and it should appear in a daily build near you shortly.

This fixes cases: 13830 & 13909

Thanks! [import]uid: 84637 topic_id: 25627 reply_id: 103703[/import]