I want to set my newscrollview to a specific height
there are two ways to do that
1 - either by setting the height property,
or
2 - by using masks
the problem is when you change the ScollView size it changes only the look of the scrollview and it will not prevent the hidden area from being touch enabled? is this a bug?
here is the code
local widget = require "widget"
local myscrollview = widget.newScrollView{
height = 300,
maskFile="mask.png"
}
local obj1 = display.newRect(0, 0, display.contentWidth, display.contentHeight)
obj1:setReferencePoint( display.TopLeftReferencePoint )
obj1:setFillColor(255,27,27)
obj1.x = 0
obj1.y = 0
local obj2 = display.newRect(0, 0, display.contentWidth, display.contentHeight)
obj2:setReferencePoint( display.TopLeftReferencePoint )
obj2:setFillColor(0,27,27)
obj2.x = 0
obj2.y = 260
myscrollview:insert(obj1)
myscrollview:insert(obj2)
is there any way to prevent the masked area from being touched??? I believe this is the normal behavior and it should work like this?
Thanks in Advance
[import]uid: 8519 topic_id: 26549 reply_id: 326549[/import]

