Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Developer
fredoust
Posts: 75
Registered: ‎09-12-2012
My Carrier: Developper

Scrollview scrolling down itself

Hi all,

 

I have a strange behavior in my app.

I have a page with a Scrollview, in this scrollview there a Label, Webview, horizontal Listview.

When I make the page and assign value for each component sometimes the scrollView automatically scroll down...

It seems to be when there is a huge content in my webview (if there isn't a webview there isn't problem).

The content can change with a user action and then the scrollView scroll down too.

 

The strangest is that if I put the app in background and immediatly get it in frontground, the strange behavior doesn't occur anymore.

 

Anyone not this before ? Maybe something append when the app is backgrounded and foregrounded that fix this behavior.

 

I don't understand.

 

Thanks.

 

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
Please use plain text.
Contributor
zacksam86
Posts: 10
Registered: ‎10-25-2011
My Carrier: fido

Re: Scrollview scrolling down itself

Have you placed your webview directly within the scrollview, or is it placed within it's own container inside the scrollview. I noticed if the webview is placed within a seperate container inside the scrollview, it automatically scrolls to where the webview starts. However, if you place the webview directly in the scrollview without it being inside a seperate container, it seems to work properly. 

Please use plain text.
Developer
fredoust
Posts: 75
Registered: ‎09-12-2012
My Carrier: Developper

Re: Scrollview scrolling down itself

Thanks for your interest.

No the webview is in a container, with label and other elements.

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
Please use plain text.
Contributor
zacksam86
Posts: 10
Registered: ‎10-25-2011
My Carrier: fido

Re: Scrollview scrolling down itself

So I'm guessing you have it placed like this?

    ScrollView

    {

        Container

        {

            Label

            {

             }

            Label

            {

             }

            Webview

            {

             }

       }

}

 

Please use plain text.
Developer
Hithredin
Posts: 368
Registered: ‎06-03-2010
My Carrier: Free

Re: Scrollview scrolling down itself

I have the same structure that you guessed and the same problem. Does anyone has found a workaround ?

Please use plain text.