widgets 2.0 vs graphics 2.0

Hey there,

Do you already have a plan for the integration of graphics 2.0 features like containers in widgets 2.0 ?

I’m looking for a way to create the scrollview masks dynamically.

I modified the widgets myself. It works very flawlessly but when I remove a widget and try to create a new one, the simulator crashes ( most of the time ):

Segmentation fault: 11  “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*

I more or least just replaced line 103 in widget.lua with the following:

local newWidget = display.newContainer(display.contentWidth,display.contentHeight)

later on in widget_scrollview.lua I added the following code after line 75:

 

 scrollView.anchorChildren = false scrollView.width = opt.width scrollView.height = opt.height scrollView.anchorX = 0 scrollView.anchorY = 0 scrollView.x = opt.left scrollView.y = opt.top

it seems like the container widget lacks of the _removeSelf() method? Maybe I’m wrong…

I really need the feature of dynamic masking very urgently…

is there a chance of a quick fix or do I have to wait until graphics 2.0 is out of beta?

any help highly appreciated,

roman

oh man, I just downloaded the latest build ( I used 2013.2010 before ) and now it works.

Maybe it was the container nesting bug…

Sorry for the confusion…

it’s so nice to finally have dynamic scrollview masking!! Yippieh :wink:

btw I modified the widgets for my needs.

I changed the following things:

  • the scrollbars height is elastic now, means that if you scroll out of boundaries it height gets tinier just like the native ios scrollbar.

  • there was a bug that when you scroll out of the boundaries and touch the scrollview, without moving it, the content stays there and doesn’t move back. I fixed that too…

  • dynamic masking / containers

I guess that my mod is only working with vertical scrollViews but if anyone is interessted I’m willing to share :wink:

roman

oh man, I just downloaded the latest build ( I used 2013.2010 before ) and now it works.

Maybe it was the container nesting bug…

Sorry for the confusion…

it’s so nice to finally have dynamic scrollview masking!! Yippieh :wink:

btw I modified the widgets for my needs.

I changed the following things:

  • the scrollbars height is elastic now, means that if you scroll out of boundaries it height gets tinier just like the native ios scrollbar.

  • there was a bug that when you scroll out of the boundaries and touch the scrollview, without moving it, the content stays there and doesn’t move back. I fixed that too…

  • dynamic masking / containers

I guess that my mod is only working with vertical scrollViews but if anyone is interessted I’m willing to share :wink:

roman