Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3026] Webview inside ScrollView breaks scrolling Android 2.1.x

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2012-05-14T15:16:58.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelswebview
ReporterFrank Apap
AssigneeShak Hossain
Created2012-05-01T21:08:44.000+0000
Updated2016-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);

Comments

  1. Mauro Parra-Miranda 2012-05-02

    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
  2. Mauro Parra-Miranda 2012-05-14

    Unsupported behavior. Not put a scrollable event inside an scrollview.
  3. Shak Hossain 2013-12-28

    Closing since we have not heard from the reporter even after we posted some recommendations.

JSON Source