I’m having trouble getting images to center in the new scrollview widget. They are close, but slightly off center. This is in build 1054. I attached the code, and also a screenshot of what’s happening. You can tell the red bar is CLOSE to be centered, but slightly off. If I remove the line where it inserts into the scrollView then it centers perfectly. Any ideas?
scrollView = widget.newScrollView { left = screenLeft, top = 0, width = screenWidth-24, height = screenHeight, scrollWidth = screenWidth-24, scrollHeight = 1000, id = "onBottom", horizontalScrollingDisabled = true, verticalScrollingDisabled = false, hideBackground = false, hideScrollBar = true, listener = scrollListener, } group:insert(scrollView) local rowBG = display.newImageRect( "assets/tabbar.png", 150, 210 ) rowBG:setReferencePoint( display.CenterReferencePoint ) rowBG.y = scrollView.y rowBG.x = screenMiddleX scrollView:insert( rowBG )