Permalink
Browse files

Merge pull request #2768 from MauriceG/patch-10

fix for #2528 listviews: first list-item has "glowing" corners on top. Thanks MauriceG!
  • Loading branch information...
2 parents 742d1c9 + e5b123c commit d61d6b0127953e10b17820cf1fdd14ed22a12c41 @toddparker toddparker committed Oct 21, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 js/jquery.mobile.listview.js
@@ -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" )

1 comment on commit d61d6b0

@toddparker
Contributor

This was causing an issue and stopping page enhancement so I had to roll this back. Can you re-test and re-submit?

Please sign in to comment.