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

Android: Animate doesn't redraw label when width is larger than parent window

    Details

      Description

      In a view there is a label whose string size is more than the view size,the label is animated to left. There is a slag to display the right side of the label. It is only displayed when the animation is over. Its getting chopped off.

      Sample app.js:

       
      var win = Titanium.UI.createWindow({  
          title:'Tab 1',
          backgroundColor:'#fff'
      });
      var view = Ti.UI.createView({
      	width:'90%',
      });
      var label = Titanium.UI.createLabel({
      	backgroundColor:'red',
      	color:'#999',
      	text:'This is a paragraph. This is a paragraph. This is a paragraph.This is a paragraph.This is a paragraph.This is a paragraph.This is a paragraph.',
      	wordWrap:false,
      });
       
      var animation = Titanium.UI.createAnimation({
      	left:-100,
          duration:5000
      }); 
      animation.addEventListener('complete',function() { 
      	animation.left = 0;
      	label.animate(animation); });
      label.animate(animation);
      view.add(label);
      win.add(view);
       
      win.open();
      
      

      Steps to Reproduce:
      1.Launch the app.
      2.Notice the label getting chopped off to the right end.
      3.It will displayed at the end of the animation.

      Please find the four screenshots attached in series.

        Attachments

        1. AnimateLabelBug.png
          AnimateLabelBug.png
          5 kB
        2. first.png
          first.png
          26 kB
        3. fourth.png
          fourth.png
          18 kB
        4. second.png
          second.png
          27 kB
        5. third.png
          third.png
          18 kB
        6. wordWrapFalse.png
          wordWrapFalse.png
          10 kB

          Issue Links

            Activity

              People

              • Assignee:
                ayeung Allen Yeung
                Reporter:
                scleaver Sam Cleaver
                Reviewer:
                Ping Wang
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration