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

iOS: TableViewRow (with custom layout) hasCheck don't works correctly

    Details

      Description

      A TableViewRow (with custom layout) hasCheck don't works correctly in iOS7.

      The hasCheck property changed (I see in log), but the symbol remains in screen.

      The check symbol appears and disappear, but I need tap in the row many times. The check symbol don't match with the hasCheck value.

      custom_tableviewrow.xml

      <Alloy>
          <TableViewRow id="row" onClick="select">
              <ImageView id="image" class="brandDefault" />
              <Label id="titleLabel" class="h3"/>
          </TableViewRow>
      </Alloy>
      

      custom_tableviewrow.js

       
      var args = arguments[0] || {};
      $.row.hasCheck   = false;
      $.titleLabel.text = args.get("name");
      $.image.image  = args.get("imagePath");
      function select(e) {
          if($.row.hasCheck == false) {
              $.row.setHasCheck(true);
          } else {
              $.row.setHasCheck(false);
          }
      }
      

      custom_tableviewrow.tss

       
      "#row": {
          layout:"horizontal",    
          width:Ti.UI.FILL,
          height:"40dp",
          selectedBackgroundColor:"#ccc",
          selectedColor:"#000"
      }
       
      "#image": {
          width:"40dp", height:"40dp"
      }
       
      ".brandDefault": {
          image: "/images/brand_default.png",
          defaultImage: "/images/brand_default.png"   
      },
       
      "#titleLabel": {
          textAlign:"left",
          width:Ti.UI.SIZE,
          height:Ti.UI.FILL,
          backgroundColor:"transparent",
          color:"#000"
      }
      

      If I try use only the title property in row (removing the layout) it's works fine. :/

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              etruta Eduardo Silva
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration