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

iOS:Label does not redraw when text property is changed

    Details

      Description

      Label text does not redraw, when the text property is changed.

      The user first creates a label, and then dynamically changes its text property, using label.text property.

      Expected behavior: The label property should change.

      Actual Behavior: The label property does not change.

      The code works for 1.8.2, but fails in the latest CI builds.(tested in 7th March, and 9th March)

      var win1 = Titanium.UI.createWindow({  
          backgroundColor:'white'
      });
       
      var label = Ti.UI.createLabel({
        text: ''
      });
       
      win1.add(label);
       
      setTimeout(function(){
        label.text = "show up";
        Ti.API.info(label.text);
      }, 1000);
       
      win1.open();
       
      var label2 = Ti.UI.createLabel({
        text: 'asdadasd asdaj lsdak l',
        width: 'auto'
      });
       
      Ti.API.info("label2 width: " + label2.size.width);
      
      

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              dgandhi Devang Gandhi
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration