fix for #2528 listviews: first list-item has "glowing" corners on top

This commit is contained in:
Maurice Gottlieb 2011-10-20 20:11:39 +03:00
parent 7fe9cc4f7b
commit e5b123ce75

View file

@ -87,7 +87,13 @@ $.widget( "mobile.listview", $.mobile.widget, {
.addClass( "ui-corner-top" );
$topli.add( $topli.find( ".ui-btn-inner" ) )
.find( ".ui-li-link-alt" )
// exclude the ui-btn-inner span in split lists
.not( ".ui-li-link-alt span:first-child" ) )
// give the glowing top-border a radius
.addClass( "ui-corner-top" )
.end()
// include the first span in split lists for border-right-radius setting
.find( ".ui-li-link-alt, .ui-li-link-alt span:first-child" )
.addClass( "ui-corner-tr" )
.end()
.find( ".ui-li-thumb" )