Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2159] [WebView] CSS displayed wrong when WebView added to a ScrollView

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2013-04-06T18:02:41.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelscss, fontsize, list, scrollview, webview
ReporterMarkus Wutzler
AssigneeMauro Parra-Miranda
Created2012-12-13T09:24:49.000+0000
Updated2016-03-08T07:41:08.000+0000

Description

In one of our apps we need to put a WebView on a ScrollView, which is difficult to handle. But now we detected another issue. As you see in [^iOS Simulator Bildschirmfoto 13.12.2012 10.12.46.png] we placed a nested unordered list on the WebView. It should look like [^iOS Simulator Bildschirmfoto 13.12.2012 10.12.18.png] (where the WebView is not placed on a ScrollView). *Expected behavior* [^iOS Simulator Bildschirmfoto 13.12.2012 10.12.18.png] *Current behavior* [^iOS Simulator Bildschirmfoto 13.12.2012 10.12.46.png] *Sample* [^app.js], [^styles.css] *Additional notes* I also debugged the WebView using Safari's developer console. As you see in [^Bildschirmfoto 2012-12-13 um 09.37.09.png] the font-size i set is 14px and the computed one is 21px.

Attachments

FileDateSize
app.js2012-12-13T09:24:49.000+00001262
Bildschirmfoto 2012-12-13 um 09.37.09.png2012-12-13T09:24:49.000+000078287
iOS Simulator Bildschirmfoto 13.12.2012 10.12.18.png2012-12-13T09:24:49.000+00005510
iOS Simulator Bildschirmfoto 13.12.2012 10.12.46.png2012-12-13T09:24:49.000+00006185
styles.css2012-12-13T09:24:49.000+000035

Comments

  1. Daniel Sefton 2013-04-06

    Hi Markus, We do not support adding web views to scroll views. From Apple's official documentation: {quote}Important: You should not embed UIWebView or UITableView objects in UIScrollView objects. If you do so, unexpected behavior can result because touch events for the two objects can be mixed up and wrongly handled.{quote}
  2. Mauro Parra-Miranda 2013-11-24

    Invalid issue.

JSON Source