[SailfishDevel] SilicaWebView

Raine Mäkeläinen raine.makelainen at jolla.com
Mon Jun 8 07:34:38 UTC 2015


Hi Rudi,

The content height of the web page equals to the height of the SilicaWebView. Thus, there is nothing to pan/flick. If you decrease height of the SilicaWebView, content becomes to be a pannable. Also notice that virtual keyboard will alter the height of the SilicaWebView if binding is like it is at below.


Page {

    id: page

    SilicaWebView {

        url: "https://www.messenger.com/login"<https://www.messenger.com/login>

        width: parent.width
        height: parent.height / 2
    }
}


If you are looking for programmatic scrolling from qml code -- not initiated by user. You have two options (at least):

1) Use contentX and contentY of the SilicaWebView (not animated)
2) Use flick(xVelocity, yVelocity) of the SilicaWebView, velocity is pixels/sec. (similar to user initiated flick)

Hope this helps,
Raine
________________________________
Lähettäjä: devel-bounces at lists.sailfishos.org [devel-bounces at lists.sailfishos.org] käyttäjän Rudi Timmermans [rudi.timmer at gmx.us] puolesta
Lähetetty: 7. kesäkuuta 2015 18:43
Vastaanottaja: devel at lists.sailfishos.org
Aihe: [SailfishDevel] SilicaWebView

Hi,

I like to using scroll on the webpage i using in my qml code.

This is the code, i have try already many thing i have found but i can not get it on working ...


Page {

    id: page

    SilicaWebView {

        url: "https://www.messenger.com/login"<https://www.messenger.com/login>

        anchors.fill: parent

        overridePageStackNavigation: true

        experimental.preferences.developerExtrasEnabled: true

Do have anyone a idea the fix this ?

Thanks!



--
---
Best regards!

Rudi Timmermans.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20150608/fcc4a835/attachment.html>


More information about the Devel mailing list