Comment 1 for bug 1413765

Revision history for this message
Olivier Tilloy (osomon) wrote :

I can confirm the issue on krillin image #209.

I had a quick look at the code, and the webview is inside a Loader whose anchors are defined like so:

    Loader {
        anchors {
            bottom: cancelButton.top
            bottomMargin: Math.max(osk.height - cancelButton.height, 0)
        }
    }

If I remove the bottomMargin, and bind the bottom anchor to osk.top, the field is scrolled into view as expected. So somehow the bottomMargin is causing oxide to not be notified of the height change in time.

This should be easy enough to fix by making the bottom anchor conditional (depending on the OSK’s visibility), or by making both the OSK and cancel button children of an item and anchoring the webview to that item.