Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3269] iOS: Scrollview through many images causes orientation to lose the index of current file

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:01:20.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.0, Sprint 2011-10
ComponentsiOS
Labelsdefect, ios, ios3.2, ios4, release-1.7.0, reported-1.7.0
ReporterNatalie Huynh
AssigneeStephen Tramer
Created2011-04-15T03:40:52.000+0000
Updated2011-04-17T02:01:20.000+0000

Description

Steps:
1. Get the attached test file
2. Compile and install to iPad
3. Run the application on the iPad in portrait mode
4. Scroll through all the images to get to end of file
5. Scroll back to some previous file and rotate to landscape mode

Result:
The image that is being displayed is the last image in the application

Expected:
To display the same image before orientation

Additional info:
It seems to have to hit a certain memory after viewing a lot of image before you can reproduce this case.

Tested with Titanium SDK version: 1.7.0 (03/03/11 11:06 87a2113) on:
iphone 3g 3.1.3, ipad 4.2.1, ipad 3.2.2

Attachments

FileDateSize
resources-2.zip2011-04-15T03:40:54.000+00007931609

Comments

  1. Jeff Haynie 2011-04-15

    (from [da44e8390edc52a0c46114cd27486bec5c8d1f78]) [#3269 state:fixed-in-qa] Cache the current page of a scrollable view before going through with resize operations, to ensure we render the correct page after operations which resize the content frame to be smaller than its current value. https://github.com/appcelerator/titanium_mobile/commit/da44e8390edc52a0c46114cd27486bec5c8d1f78"> https://github.com/appcelerator/titanium_mobile/commit/da44e8390edc...

  2. Natalie Huynh 2011-04-15

    Tested with Titanium SDK version: 1.7.0 (03/08/11 09:53 1df642e) on
    iPad 3.2
    iPhone 3g 3.1.3

    Steps to Repro:
    1. Scroll to last image
    2. Change orientation

    Note: Only happens on the last image now.

  3. Jeff Haynie 2011-04-15

    (from [1dbf930139fbd7d351615943f91f72095e7b47f7]) [#3269 state:fixed-in-qa] Record previous page number on frame/bounds resize.. this might be useful for some situations in which a user manually resizes a scrollable view as well. https://github.com/appcelerator/titanium_mobile/commit/1dbf930139fbd7d351615943f91f72095e7b47f7"> https://github.com/appcelerator/titanium_mobile/commit/1dbf930139fb...

  4. Natalie Huynh 2011-04-15

    Tested with Titanium SDK version: 1.7.0 (03/08/11 13:41 1dbf930) on
    iPad 3.2
    iphone 3g 3.1.3

    No longer changing image on orientation, but it does change when doing orientation in the middle of a scroll, please reference bug 3308

JSON Source