[TIMOB-13660] iOS: Using Ti.UI.ScrollViews as pages of Ti.UI.ScrollableView produces unexpected results
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-30T23:08:58.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | 2013 Sprint 09 API, 2013 Sprint 09, Release 3.1.1, Release 3.2.0 |
Components | iOS |
Labels | triage |
Reporter | Shannon Hicks |
Assignee | Vishal Duggal |
Created | 2013-04-22T15:33:01.000+0000 |
Updated | 2014-06-19T12:42:48.000+0000 |
Description
*Problem description*
If you use Ti.UI.ScrollView objects as the views of a Ti.UI.ScrollableView, things get strange with the 4th+ views. It appears to be related to the memory management built in to ScrollableView, not drawing views until they are +/- 2 views away.
*Note*
If you do dumps of the Ti.UI.ScrollView.size properties, x/y/height/width are all correct, but the display puts them wherever it feels like.
*Workaround*
It works if you wrap the Ti.UI.ScrollView in a Ti.UI.View.
Attachments
Tested and confirmed on iOS 6 simulator, Ti SDK 3.1 GA.
Pull pending against master https://github.com/appcelerator/titanium_mobile/pull/4221 Backport to 3_1_X https://github.com/appcelerator/titanium_mobile/pull/4222
Working as expected. Verified on: Device : iPhone 4S , iOS version : 5.1.1 SDK: 3.1.1.v20130503173050 CLI version : 3.1.0 OS : MAC OSX 10.7.5 Appcelerator Studio, build: 3.1.0.201305020752 XCode : 4.5.1
not sure if this is the same problem but when I try to add multiple pages (views, images or scrollviews) to my scrollable view my pages start looking like this: !http://ibin.co/w800/zIzPO7oTGOs! half of the next pages is displayed over the current one. It was working fine with 3.1.0 but all newer versions had this error. I have to upgrade to 3.1.3 now because of iOS7 but I can't use the scrollable view now. Posted this inside QA: http://developer.appcelerator.com/question/156470/scrollview-inside-scrollableview-displaying-half-pages-again-312 anybody else got this problem again?