Hi, I’m setting a height of 400 and a scrollHeight of 1900 but the scroll always comes back to the initial position.
This code worked in previous builds (1038) is there something else I must do?
Thanks.
Here is my code if someone can help:
myClass:load(left, top, width, height, mask )
local function scrollListener(event)
return self:onScroll(event)
end
self._scrollView = widget.newScrollView{
left=left,
top=top,
width=width,
height=height,
scrollWidth = self._scrollWidth,
scrollHeight = self._scrollHeight,
hideBackground=self._hideBackground,
backgroundColor={0,0,0,255},
hideScrollBar=self._hideScrollBar,
maskFile=mask,
verticalScrollDisabled=(not self._isVertical),
horizontalScrollDisabled=(not self._isHorizontal),
friction = self._friction,
listener = scrollListener
}
if (mask) then
self._scrollView.isHitTestMasked = true
end
self._listeners = {}
self._displayGroup:insert(self._scrollView)
self._isActive = true
self._x = 0
self._y = 0
end
All values entered to the Scroll view are correct I had this code working properly on version 1038, but now it just stopped working. I’ve tried to mimic the scrollView sample code and it’s got the same code… I don’t know what I could be doing wrong…