Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-11764

[ios] scrollableview doesnt behave correctly on width/height animation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 2.1.2, Release 2.1.3, Release 2.1.4, Release 3.1.0
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      titanium 2.1.2, 2.1.3, 2.1.4
      ios 5.1
      ios 6

      Description

      When resizing a scrollableview, you get very strange behaviours. Mostly pages are not resize correctly:

      • the page view is resized but not the page view children
      • animation as different effect depending on which page we are on (first one is the closest to be ok).

      test case

      var win = Ti.UI.createWindow();
          
      var view1 = Ti.UI.createView({ backgroundColor:'#123' });
      var view2 = Ti.UI.createView({ backgroundColor:'#246' });
      var view3 = Ti.UI.createView({ backgroundColor:'#48b' });
       
      var inView1 = Ti.UI.createView({ backgroundColor:'black', width:"70%" , height:"70%"});
      view1.add(inView1);
      var inView2 = Ti.UI.createView({ backgroundColor:'black', width:"70%", height:"70%" });
      view2.add(inView2);
      var inView3 = Ti.UI.createView({ backgroundColor:'black', width:"70%", height:"70%" });
      view3.add(inView3);
       
      var scrollableView = Ti.UI.createScrollableView({
        views:[view1,view2,view3],
        width:300,
        height:200
      });
       
      var needsShrink = true;
       
      win.add(scrollableView);
       
      var button = Titanium.UI.createButton({
         title: 'resize',
         top: 10,
         width: 100,
         height: 50
      });
      button.addEventListener('click',function(e)
      {
         scrollableView.animate({
             height:(needsShrink?100:200),
             width:(needsShrink?200:300)
             });
         needsShrink = !needsShrink;
      });
      win.add(button);
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              farfromrefuge Martin Guillon (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-14945
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration