Skip to content
This repository
Browse code

Listview: Fixes inset lists with autodividers didn't get corner styling.

  • Loading branch information...
commit afba16bd8df2dfdf2729efc521264cc1cbe5d528 1 parent 22ef7fb
Jasper de Groot authored July 13, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  js/widgets/listview.js
4  js/widgets/listview.js
@@ -63,8 +63,8 @@ $.widget( "mobile.listview", $.mobile.widget, {
63 63
 			$bottomli;
64 64
 
65 65
 		$li = this.element.children( "li" );
66  
-		// at create time the li are not visible yet so we need to rely on .ui-screen-hidden
67  
-		$visibleli = create ? $li.not( ".ui-screen-hidden" ) : $li.filter( ":visible" );
  66
+		// At create time and when autodividers calls refresh the li are not visible yet so we need to rely on .ui-screen-hidden
  67
+		$visibleli = create || $li.filter( ":visible" ).length === 0 ? $li.not( ".ui-screen-hidden" ) : $li.filter( ":visible" );
68 68
 
69 69
 		// ui-li-last is used for setting border-bottom on the last li		
70 70
 		$li.find( ".ui-li-last" ).removeClass( "ui-li-last" );

0 notes on commit afba16b

Please sign in to comment.
Something went wrong with that request. Please try again.