Scrollview Widget Numchildren / Scrollview Widget Insert And Remove Objects

Hi,

I currently use the 2013.1075 (2013.4.1) Version

Got problems with scrollView widget.

  • I have a scrollView widget. Let call it myScrollView

  • I insert display objects on it with the insert method : myScrollView:insert(object)

Firstly, I don’t understand :

 - why myScrollView.numChildren is always equal to 3, regardless the number of display objects I insert?

Secondly,

  • is it possible to “disinsert” an object already inserted in myScrollView without removing the object itself ?

Thank you for your help :slight_smile:

Best,

Olivier

Hi,

I currently use the 2013.1075 (2013.4.1) Version

Got problems with scrollView widget.

  • I have a scrollView widget. Let call it myScrollView

  • I insert display objects on it with the insert method : myScrollView:insert(object)

Firstly, I don’t understand :

 - why myScrollView.numChildren is always equal to 3, regardless the number of display objects I insert?

Secondly,

  • is it possible to “disinsert” an object already inserted in myScrollView without removing the object itself ?

Thank you for your help :slight_smile:

Best,

Olivier

  1. Thats because when you insert an object into a scrollView it gets inserted into the scrollView’s _view group, this is the group which scrolls. Which is in your case myScrollView._view

  2. Sure, just insert the object into another group. Objects can only reside in one display group at a time.

Hope this helps

Thank you Danny :slight_smile:

it helps!

Best,

Olivier

Hi Danny

I’ve just sent a bug report on scrollView widget with code sample

(Case 22436) BUG in new scrollView widget 

Hope you can have a look and help me… :slight_smile:

Thank you !

Sincerely, 

Olivier

Hey Olivier.

Thanks for reporting the bug, your test case helped identify where the problem was and the issue has been fixed.

Once daily builds kick off again the fix will be available (in the first few daily builds) 

Thanks

Thanks Danny !

Great news :slight_smile:

Olivier

Hi,

I currently use the 2013.1075 (2013.4.1) Version

Got problems with scrollView widget.

  • I have a scrollView widget. Let call it myScrollView

  • I insert display objects on it with the insert method : myScrollView:insert(object)

Firstly, I don’t understand :

 - why myScrollView.numChildren is always equal to 3, regardless the number of display objects I insert?

Secondly,

  • is it possible to “disinsert” an object already inserted in myScrollView without removing the object itself ?

Thank you for your help :slight_smile:

Best,

Olivier

  1. Thats because when you insert an object into a scrollView it gets inserted into the scrollView’s _view group, this is the group which scrolls. Which is in your case myScrollView._view

  2. Sure, just insert the object into another group. Objects can only reside in one display group at a time.

Hope this helps

Thank you Danny :slight_smile:

it helps!

Best,

Olivier

Hi Danny,

I didn’t find the Case 22436) in recent builds

Do you know when it will be integrated?

Thanks

Olivier

Hi Danny

I’ve just sent a bug report on scrollView widget with code sample

(Case 22436) BUG in new scrollView widget 

Hope you can have a look and help me… :slight_smile:

Thank you !

Sincerely, 

Olivier

Hey Olivier.

Thanks for reporting the bug, your test case helped identify where the problem was and the issue has been fixed.

Once daily builds kick off again the fix will be available (in the first few daily builds) 

Thanks

Thanks Danny !

Great news :slight_smile:

Olivier

Hi Danny,

I didn’t find the Case 22436) in recent builds

Do you know when it will be integrated?

Thanks

Olivier