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

iOS: ListView backgroundGradient not full row size

    Details

    • Story Points:
      3
    • Sprint:
      2016 Sprint 1 SDK

      Description

      ~~~
      <ListView defaultItemTemplate="template" id="list_pano">
      <Templates>
      <ItemTemplate name="template">
      <View class="line_white top" />
      <ImageView bindId="img" class="img_preview" />
      <View class="vertical view_text">
      <Label bindId="title" class="headline lbl_title" />
      <Label bindId="text" class="lbl_text" />
      </View>
      <Label bindId="subtitle" class="subtitle lbl_subtitle" />
      </ItemTemplate>
      </Templates>
      <ListSection/>
      </ListView>
      ~~~

      data object
      ~~~
      data.push({
      title: {

      },
      subtitle: {

      },
      text: {

      },
      img: {

      },
      properties: {
      height: 122,
      backgroundGradient:{
      colors: [

      { color: '#ffffff', offset: 0.0 }

      ,

      { color: '#000000', offset: 1.0 }

      ],

      type: 'linear'
      }
      }
      });
      ~~~

      backgroundGradient looks wrong

      If I use just a selectedBackgroundGradient with the same color it looks correct. If I use both together the selectedBackgroundGradient has the same width/height as the backroundGradient and the rest of the selected row is grey

      iOS 8
      Titanium 3.5.0
      OSX

        Attachments

        1. IMG_0777.jpg
          IMG_0777.jpg
          136 kB
        2. list_default.jpg
          list_default.jpg
          47 kB
        3. list_hl.jpg
          list_hl.jpg
          55 kB

          Activity

            People

            • Assignee:
              ssombhatla Srikanth Sombhatla (Inactive)
              Reporter:
              michael Michael Gangolf
              Reviewer:
              Angel Petkov
              Tester:
              Josh Longton
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code