diff options
| -rw-r--r-- | Resources/friendship/ui/LikeList.js | 41 | 
1 files changed, 4 insertions, 37 deletions
| diff --git a/Resources/friendship/ui/LikeList.js b/Resources/friendship/ui/LikeList.js index 93a7814..eb16bfc 100644 --- a/Resources/friendship/ui/LikeList.js +++ b/Resources/friendship/ui/LikeList.js @@ -19,10 +19,9 @@  				pic_square: "images/fb_test_profile.jpg",  				name: "Test Name",  				description: "Description Description Description Description Description Description Description Description Description Description Description Description ", -				fan_count: "1000000000000000",   				page_url: "http://www.google.com",  				website: "http://www.google.com", -				type: "SHOW" +				website: "http://www.google.com"  			} )   		); @@ -33,8 +32,6 @@  				description: "Description Description Description Description Description Description Description Description Description Description Description Description ",  				fan_count: "2",   				page_url: "http://www.google.com", -				website: "http://www.google.com", -				type: "BOOK"  			} )   		);		  	} @@ -86,44 +83,16 @@  			top: 0,  			opacity:0.65,  			left: 0, -			height:'12'  		});  		fan_c.top = 50-fan_c.height;  		if( fan_c.width < 10 ) fan_c.width = 10; - -		var item_type = Ti.UI.createLabel({ -			text: " " + key.type + " ", -			font:{fontSize:11,fontWeight:'single'}, -			color:'white', -			backgroundColor: '#b0d3a4', -			width:'auto', -			textAlign:'left', -			top:2, -			left: profile_icon.width + 2, -			height:'auto' -		}); - -		var liked_by = Ti.UI.createLabel({ -			text: " Friend Bob ", -			font:{fontSize:11,fontWeight:'bold'}, -			color: 'white', -			backgroundColor:"#d1d5e0", -			width:'auto', -			textAlign:'left', -			top:2, -			left: item_type.left + item_type.width + 2, -			height:'auto' -		}); -		  		var title = Ti.UI.createLabel({  			text:key.name,  			font:{fontSize:12,fontWeight:'bold'},  			width:'auto',  			textAlign:'left', -			top:item_type.height + 2, -			left: profile_icon.width + 4,  			height:'auto',  			wordWrap:'true'  		}); @@ -136,20 +105,18 @@  			font:{fontSize:12,fontWeight:'single'},  			width:'auto',  			textAlign:'left', -			top: title.top + title.height-5, -			left:profile_icon.width + 4 +			wordWrap:'true',  		});  		row.height = 50; +		row.height = 'auto';  		row.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 );  		return row; @@ -157,11 +124,11 @@  	fs.ui.createLikeList = function() {  		var ll_view = Ti.UI.createTableView(); +		ll_view.maxRowHeight = 150;  		var loading = fs.ui.createLoadingView();  		ll_view.add(loading); -		add_test_data( ll_view );  		//Ti.App.fireEvent('app:show.loader'); | 
