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.

inside custom component

Native Development

Reply
Developer
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers
Accepted Solution

Webview scrolling issue

I am just starting off in Cascades and I m trying simple stuff like having tabs and a web view element. Unforunately when I am in the app, scrolling is disabled within this webview element. Is this a known bug or am i doing something wrong?

 

My code is literally:

 

TabbedPane {
showTabsOnActionBar: true
Tab {
title: qsTr("test")
imageSource: "asset:///images/actionBar/testing.png"
Page {
id: tab1
WebView {
url: "<url deleted>"
}
}
}

 

With repeated tabs etc.. and keeping the last few lines the same as below (default)

 

onCreationCompleted: {
// this slot is called when declarative scene is created
// write post creation initialization here
console.log("TabbedPane - onCreationCompleted()")

// enable layout to adapt to the device rotation
// don't forget to enable screen rotation in bar-bescriptor.xml (Application->Orientation->Auto-orient)
OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.All;
}
}

 

Thanks in advance


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Highlighted
Developer
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: Webview scrolling issue

Found my error. For anyone else wonder, just tag on a scrollView before the container and it will work beauties.


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!