[TIMOB-19741] iOS: webViews within a scrollableView disappear
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-10-28T20:33:58.000+0000 |
Affected Version/s | Release 4.1.1 |
Fix Version/s | Release 5.2.0, Release 5.1.2 |
Components | n/a |
Labels | n/a |
Reporter | Martin Paul |
Assignee | Angel Petkov |
Created | 2015-10-09T16:42:53.000+0000 |
Updated | 2016-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
File | Date | Size |
testcase.zip | 2015-10-16T08:10:04.000+0000 | 10293487 |
If you set the HTML to the webView AFTER the Window opened it works. Maybe this helps you to find the bug.
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.
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:
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.
PR pending: https://github.com/appcelerator/titanium_mobile/pull/7363/files
PR *approved*, thanks!
Thanks for fixing. In which version will it be fixed?
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)
[~impacmp] This fix is part of the 5.1.1 / 5.2.0 release, since we will already release 5.1.0.GA.
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.
Can anybody tell me when version 5.1.2.GA (with this fix here) will be released?
Most probably this week.
testet with 5.1.2.GA - not fixed here, please reopen ticket
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.