[AC-3026] Webview inside ScrollView breaks scrolling Android 2.1.x
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-05-14T15:16:58.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | webview |
Reporter | Frank Apap |
Assignee | Shak Hossain |
Created | 2012-05-01T21:08:44.000+0000 |
Updated | 2016-03-08T07:48:03.000+0000 |
Description
Note this issue works in the 2.0.1GA2 release but is broken in more recent CI builds.
If you put a webview inside a scrollview the webviews natural scrolling doesn't work.
Test code:
var win1 = Titanium.UI.createWindow({
backgroundColor:'#fff'
});
innerView = Ti.UI.createScrollView({
layout:'vertical',
top:0,
height:250,
backgroundColor:'white',
width:'100%'
});
mHtml="xtest
test2
test
test
test5
test
test
test
test
testxxxx
test
test2
test
test
test5
test
test
test
test
testxxxx
"; var wView = Ti.UI.createWebView({ width:280, height:Ti.UI.SIZE, html: mHtml }); innerView.add(wView); win1.add(innerView);
test2
test
test
test5
test
test
test
test
testxxxx
test
test2
test
test
test5
test
test
test
test
testxxxx
"; var wView = Ti.UI.createWebView({ width:280, height:Ti.UI.SIZE, html: mHtml }); innerView.add(wView); win1.add(innerView);
In general, we don't recommend to put a scrollable view inside other scrollable view. The recommendation is create a view that encloses the webview, like a tab. Then you should be able to scroll with the scrollview via the view and scroll the webview inside the view. Best, Mauro
Unsupported behavior. Not put a scrollable event inside an scrollview.
Closing since we have not heard from the reporter even after we posted some recommendations.