Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1370] iOS: Returning from landscape, scroll view inside scroller view loses its current images (goes blank)

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2017-06-07T22:14:42.000+0000
Affected Version/sRelease 1.5.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterChris G
AssigneeIngo Muschenetz
Created2011-04-15T02:50:36.000+0000
Updated2017-06-07T22:14:42.000+0000

Description

Returning from landscape, scroll view inside scroller view loses its current images (goes blank)
Have to scroll to reset it back.

var scrollView = Titanium.UI.createScrollView({backgroundColor:'#ffffff', contentHeight:'auto', layout:'vertical', contentWidth:320,  top:0,  showVerticalScrollIndicator:true,   showHorizontalScrollIndicator:false});


var image_scrollView = Titanium.UI.createScrollableView({top:20,left:10,width:300,height:190,views:photo_array,showPagingControl:true,pagingControlColor:'#999',pagingControlHeight:5,maxZoomScale:2.0  });
scrollView.add(image_scrollView);

Attachments

FileDateSize
img_02211.PNG2011-04-15T02:50:37.000+000032538

Comments

  1. Chris G 2011-04-15

    Happens in iphone, using 1.3.2, 1.3.2 and latest git

  2. Chris G 2011-04-15

    workaround

       image_scrollView.currentPage = 0;
       
  3. Chris G 2011-04-15

    this work around has stopped working in 1.5

  4. Chris G 2011-04-15

    finally, just figured it out. This happens when you use the same image objects for the second scrollview.
    Since the array contains image objects, array.slice() isnt enough to clone the array. it needs to recreate every image object inside the using the orginal file paths. Sooo guess this is a very minor bug with a relativly easy work around.

  5. Stephen Tramer 2011-04-15

    Companion to #1369.

  6. Lee Morris 2017-06-07

    Closing ticket due to time passed and lack of progress.

JSON Source