Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit afba16bd8df2dfdf2729efc521264cc1cbe5d528 1 parent 22ef7fb
@jaspermdegroot jaspermdegroot authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/widgets/listview.js
View
4 js/widgets/listview.js
@@ -63,8 +63,8 @@ $.widget( "mobile.listview", $.mobile.widget, {
$bottomli;
$li = this.element.children( "li" );
- // at create time the li are not visible yet so we need to rely on .ui-screen-hidden
- $visibleli = create ? $li.not( ".ui-screen-hidden" ) : $li.filter( ":visible" );
+ // At create time and when autodividers calls refresh the li are not visible yet so we need to rely on .ui-screen-hidden
+ $visibleli = create || $li.filter( ":visible" ).length === 0 ? $li.not( ".ui-screen-hidden" ) : $li.filter( ":visible" );
// ui-li-last is used for setting border-bottom on the last li
$li.find( ".ui-li-last" ).removeClass( "ui-li-last" );
Please sign in to comment.
Something went wrong with that request. Please try again.