mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-10 23:53:10 +00:00
fixed issue with listview corner rounding when listviews have only a couple items.
This commit is contained in:
parent
ce5ea07780
commit
9423bc199d
1 changed files with 6 additions and 3 deletions
|
|
@ -245,8 +245,9 @@ $.widget( "mobile.listview", $.mobile.widget, {
|
|||
.end()
|
||||
.find( ".ui-li-thumb" )
|
||||
.addClass( "ui-corner-tl" );
|
||||
|
||||
self._removeCorners( item.next() );
|
||||
if(item.next().next().length){
|
||||
self._removeCorners( item.next() );
|
||||
}
|
||||
|
||||
} else if ( pos === li.length - 1 ) {
|
||||
itemClass += " ui-corner-bottom";
|
||||
|
|
@ -259,7 +260,9 @@ $.widget( "mobile.listview", $.mobile.widget, {
|
|||
.find( ".ui-li-thumb" )
|
||||
.addClass( "ui-corner-bl" );
|
||||
|
||||
self._removeCorners( item.prev() );
|
||||
if(item.prev().prev().length){
|
||||
self._removeCorners( item.prev() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue