[TIMOB-3269] iOS: Scrollview through many images causes orientation to lose the index of current file
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:01:20.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.7.0, Sprint 2011-10 |
Components | iOS |
Labels | defect, ios, ios3.2, ios4, release-1.7.0, reported-1.7.0 |
Reporter | Natalie Huynh |
Assignee | Stephen Tramer |
Created | 2011-04-15T03:40:52.000+0000 |
Updated | 2011-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
File | Date | Size |
---|---|---|
resources-2.zip | 2011-04-15T03:40:54.000+0000 | 7931609 |
(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...
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.
(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...
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