Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13660] iOS: Using Ti.UI.ScrollViews as pages of Ti.UI.ScrollableView produces unexpected results

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-04-30T23:08:58.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 09 API, 2013 Sprint 09, Release 3.1.1, Release 3.2.0
ComponentsiOS
Labelstriage
ReporterShannon Hicks
AssigneeVishal Duggal
Created2013-04-22T15:33:01.000+0000
Updated2014-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

FileDateSize
app.js2013-04-22T15:33:01.000+00001830
PhotoGallery.js2013-04-22T15:33:01.000+000012447
Screen3.png2013-04-23T22:15:08.000+000088242
Screen4.png2013-04-23T22:15:08.000+00003429

Comments

  1. Daniel Sefton 2013-04-23

    Tested and confirmed on iOS 6 simulator, Ti SDK 3.1 GA.
  2. Vishal Duggal 2013-04-29

    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
  3. Paras Mishra 2013-05-06

    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
  4. Michael Gangolf 2013-10-22

    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?

JSON Source