diff options
| author | Teddy Wing | 2012-06-24 04:16:19 -0400 |
|---|---|---|
| committer | Teddy Wing | 2012-06-24 04:16:19 -0400 |
| commit | 4ca2c86c189db5b476c9bef9c4b8f0744eada30b (patch) | |
| tree | f45fa4fbfe582820865d4d881c045897f4cad1c6 | |
| parent | 290565f01e275df4d02d7fa322c4375fb72af98f (diff) | |
| download | LikeFeed-4ca2c86c189db5b476c9bef9c4b8f0744eada30b.tar.bz2 | |
Like list: spaced out the like list and added some styling. Don't know if Nikita was doing this at the same time, hmmm.
| -rw-r--r-- | Resources/friendship/ui/LikeList.js | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/Resources/friendship/ui/LikeList.js b/Resources/friendship/ui/LikeList.js index 93a7814..0bf744c 100644 --- a/Resources/friendship/ui/LikeList.js +++ b/Resources/friendship/ui/LikeList.js @@ -63,7 +63,7 @@ image:key.pic_square, width:50, height:50, - left:0, + left:5, top:0 }); @@ -85,7 +85,7 @@ textAlign:'right', top: 0, opacity:0.65, - left: 0, + left: 5, height:'12' }); fan_c.top = 50-fan_c.height; @@ -101,7 +101,7 @@ width:'auto', textAlign:'left', top:2, - left: profile_icon.width + 2, + left: profile_icon.width + 12, height:'auto' }); @@ -119,11 +119,11 @@ var title = Ti.UI.createLabel({ text:key.name, - font:{fontSize:12,fontWeight:'bold'}, + font:{fontSize:16,fontWeight:'bold'}, width:'auto', textAlign:'left', top:item_type.height + 2, - left: profile_icon.width + 4, + left: profile_icon.width + 14, height:'auto', wordWrap:'true' }); @@ -133,24 +133,32 @@ var description = Ti.UI.createLabel({ text:key.description, - font:{fontSize:12,fontWeight:'single'}, + font:{fontSize:14,fontWeight:'single'}, + height: 15, width:'auto', textAlign:'left', - top: title.top + title.height-5, - left:profile_icon.width + 4 + top: title.top + title.height, + left:profile_icon.width + 14 }); - - row.height = 50; + var item_view = Ti.UI.createView({ + height: 'auto', + top: 5, + bottom: 5 + }); - row.add( profile_icon ); + row.height = 'auto'; //50; + + item_view.add( profile_icon ); // row.add( thumb_icon ); - row.add(fan_c); - row.add( title ); - row.add(liked_by); - row.add( item_type ); - row.add( description ); + item_view.add(fan_c); + item_view.add( title ); + item_view.add(liked_by); + item_view.add( item_type ); + item_view.add( description ); + + row.add(item_view); return row; } |
