Skip to content

Commit

Permalink
Merge pull request jquery-archive#2768 from MauriceG/patch-10
Browse files Browse the repository at this point in the history
fix for jquery-archive#2528 listviews: first list-item has "glowing" corners on top. Thanks MauriceG!
  • Loading branch information
toddparker committed Oct 21, 2011
2 parents 742d1c9 + e5b123c commit d61d6b0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/jquery.mobile.listview.js
Expand Up @@ -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" )
Expand Down

0 comments on commit d61d6b0

Please sign in to comment.