Permalink
Browse files

Listview: Fix truncation in presence of icon

Fixes gh-8325
Closes gh-8344
  • Loading branch information...
apsdehal authored and arschmitz committed Dec 12, 2015
1 parent 3ba1af2 commit b58029f5a5d8335888715615506258c50ecdecd4
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/widgets/listview.js
View
@@ -194,7 +194,7 @@ return $.widget( "mobile.listview", $.extend( {
"ui-listview-item-split-button", altButtonClass );
last.attr( "title", $.trim( last.getEncodedText() ) );
if ( !createEnhanced ) {
last.empty().append( span );
last.empty().prepend( span );
}
// Reduce to the first anchor, because only the first gets the buttonClass
@@ -205,7 +205,7 @@ return $.widget( "mobile.listview", $.extend( {
addItemToDictionary( itemClassDict, span[ 0 ], "ui-listview-item-icon",
"ui-icon ui-icon-" + icon + " ui-widget-icon-floatend" );
if ( !createEnhanced ) {
a.append( span );
a.prepend( span );
}
}

0 comments on commit b58029f

Please sign in to comment.