#1125 - If a torrent has 0% completed, the progressbar is 1 pixel long

This commit is contained in:
Malcolm Jarvis
2008-08-14 01:40:08 +00:00
parent 49d3a7fc9f
commit bbd05758a6
2 changed files with 5 additions and 0 deletions

View File

@@ -340,6 +340,7 @@ Torrent.prototype =
e.addClass( 'torrent_progress_bar' );
e.addClass( class_name );
e.css( 'width', css_completed_width + '%' );
if(css_completed_width == 0) { e.addClass( 'empty' ); }
// Update the 'incomplete' bar
e = root._progress_incomplete_container;