Proper way to create widget.newScrollView in G2

Hello,

I’m having an issue with the scroll view.  It was working fine on build 2013.2026 but now is just a big white block across the screen.  I don’t notice any updated documentation on it.  Is it just broken right now?

Thanks in advance.

Build 2013.2039

I just tried with 2041 and it built the scrollView correctly using this code:

local scrollView = widget.newScrollView({     width = 300,     height = 300,     scrollWidth = 600,     scrollHeight = 600     }) scrollView.x = display.contentCenterX scrollView.y = display.contentCenterY local zzz = display.newRect(0, 0, 600, 600) zzz.x = display.contentCenterX zzz.y = display.contentCenterY scrollView:insert(zzz) zzz.fill = {type="gradient", color1={1,0,0}, color2={0, 0, 1}, direction="down"}  

Rob

Thanks for taking the time to confirm Rob.  I’m still having the same problem so I am going to try and rebuild the view back up a step at a time and see where it broke.  It still runs perfectly in 2026.  

I am embedding the content in some groups before it is added to the scrollView so I am wondering if the issue has something to do with that.

Will report back soon.

Best.

There have been significant Widget updates since 2026.  Are you using the v1compatiblity? 

Am not using V1 compatibility.  I documented my particular issues in this post.  

I just tried with 2041 and it built the scrollView correctly using this code:

local scrollView = widget.newScrollView({     width = 300,     height = 300,     scrollWidth = 600,     scrollHeight = 600     }) scrollView.x = display.contentCenterX scrollView.y = display.contentCenterY local zzz = display.newRect(0, 0, 600, 600) zzz.x = display.contentCenterX zzz.y = display.contentCenterY scrollView:insert(zzz) zzz.fill = {type="gradient", color1={1,0,0}, color2={0, 0, 1}, direction="down"}  

Rob

Thanks for taking the time to confirm Rob.  I’m still having the same problem so I am going to try and rebuild the view back up a step at a time and see where it broke.  It still runs perfectly in 2026.  

I am embedding the content in some groups before it is added to the scrollView so I am wondering if the issue has something to do with that.

Will report back soon.

Best.

There have been significant Widget updates since 2026.  Are you using the v1compatiblity? 

Am not using V1 compatibility.  I documented my particular issues in this post.