Creating Scene overlay on top of scrollView

Hi All,

I have spent several hours trying to figure this out and looking for answers and have had to admit defeat :frowning:

My App consists of a storyboard.

Within that storyboard I have a widget.newScrollView

i.e.

    app.scrollView = widget.newScrollView

    {

        top = 33,

        left = 10,

        width = 460,

        height = 270,

        scrollWidth = 460,

        scrollHeight = 270,

        horizontalScrollDisabled = true

    }

Elsewhere in the App when the user clicks the navigation at the top of the screen I run some code to pop open an overlay.

i.e.

require(“storyboard”).showOverlay( “screens.userOptions” ,{effect = “fade”, isModal = true} )

This screen that pops open always appears behind the scrollView, and I need it to be in front.

I have tried using isHitTestMasked  and Locking the scrollview to see if that makes a difference, it does not.

If I change the scrollview to a displayGroup it does work and the overlay appears in front. This leads met to conclude that it is an issue with the widget?

I am running this on the simulator on a PC.

Any help gratefully received :wink:

Solved it.

It was because I had not original declared the variable ‘app.scrollView’ as a widget or display group. This meant it was not showing the behavior you would expect. Make sense I guess, I was taking it for granted you could change variable types as and when.

Solved it.

It was because I had not original declared the variable ‘app.scrollView’ as a widget or display group. This meant it was not showing the behavior you would expect. Make sense I guess, I was taking it for granted you could change variable types as and when.