Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19741] iOS: webViews within a scrollableView disappear

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-10-28T20:33:58.000+0000
Affected Version/sRelease 4.1.1
Fix Version/sRelease 5.2.0, Release 5.1.2
Componentsn/a
Labelsn/a
ReporterMartin Paul
AssigneeAngel Petkov
Created2015-10-09T16:42:53.000+0000
Updated2016-01-25T18:13:15.000+0000

Description

Hi, if you have webViews with html content within a scrollableView, they will disappear when you scroll through the scrollableView. CacheSize of scrollableView does not have any impact to this issue. You can easily reproduce this issue: 1. Create a scrollableView 2. Create 10 Views with a webView in it (put some html into the webview) 3. Put the views into the scrollableView 4. Scroll forward and then backward through the scrollableView 5.0.0.GA / 5.0.1.GA / 5.0.2.GA, iOS9, xcode 7.0.1

Attachments

FileDateSize
testcase.zip2015-10-16T08:10:04.000+000010293487

Comments

  1. Martin Paul 2015-10-09

    If you set the HTML to the webView AFTER the Window opened it works. Maybe this helps you to find the bug.
  2. Martin Paul 2015-10-16

    find attached a full titanium project. The whole code is in the app.js. Just run it in an iOS9 iPad Air2 Simulator - scroll all 10 views forward, and then scroll some views backward - you will see that at some point the webviews will be empty.
  3. Thibault Lenclos 2015-10-20

    I also found this bug since SDK 4.1.1, not happening in 3.5.1. It seems that the html property of the webview is lost when it goes in the cache. See this minimalist code to reproduce the issue:
       var win = Ti.UI.createWindow();
       var views = [];
       for (var i=0; i<5; i++) {
           views.push(Ti.UI.createWebView({ url: "<h1>Webview '+i+'</h1>" }));
       }
       
       var scrollableView = Ti.UI.createScrollableView({views: views});
       win.add(scrollableView);
       win.open();
       
  4. Thibault Lenclos 2015-10-20

    Last changes to iOS webview are in this commit https://github.com/appcelerator/titanium_mobile/commit/0f18c5b8eb3f686f0dfc88b1f295e3dea3b36f87 but sadly I don't really understand it.
  5. Angel Petkov 2015-10-28

    PR pending: https://github.com/appcelerator/titanium_mobile/pull/7363/files
  6. Hans Knöchel 2015-10-28

    PR *approved*, thanks!
  7. Martin Paul 2015-10-29

    Thanks for fixing. In which version will it be fixed?
  8. Martin Paul 2015-11-16

    Problem still exists within the 5.1.0 RC (https://community.appcelerator.com/topic/3976/sdk-5-1-0-rc-and-studio-4-4-0-rc-now-available/2)
  9. Hans Knöchel 2015-11-16

    [~impacmp] This fix is part of the 5.1.1 / 5.2.0 release, since we will already release 5.1.0.GA.
  10. Eric Wieber 2015-11-23

    Verified fixed, using: MacOS 10.11.2 (15C47a) Studio 4.4.0.201511182122 Ti SDK 5.1.1.v20151122191220 Appc NPM 4.2.2 Appc CLI 5.1.0 Ti CLI 5.0.5 Alloy 1.7.26 Arrow 1.3.22 Xcode 7.1 (7B91b) Node v0.12.7 Java 1.7.0_80 production Webviews do not disappear a display properly when scrolling through scrollableViews and scrollviews. Used the provided test cases.
  11. Martin Paul 2016-01-05

    Can anybody tell me when version 5.1.2.GA (with this fix here) will be released?
  12. Chee Kiat Ng 2016-01-05

    Most probably this week.
  13. Martin Paul 2016-01-25

    testet with 5.1.2.GA - not fixed here, please reopen ticket
  14. Angel Petkov 2016-01-25

    Please test with http://builds.appcelerator.com/#5_2_X. The fix is included in that SDK, if the issue still persists please leave a comment and we will re-evaluate the fix.

JSON Source