Skip to content

Commit

Permalink
Merge pull request mediaelement#773 from romanbsd/rail-size
Browse files Browse the repository at this point in the history
Fix the calculation of rail size.
  • Loading branch information
johndyer committed Feb 24, 2013
2 parents 2e839e5 + 2756b23 commit 8e2f40c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/mep-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,8 @@

// find the size of all the other controls besides the rail
others.each(function() {
if ($(this).css('position') != 'absolute') {
var $this = $(this);
if ($this.css('position') != 'absolute' && $this.is(':visible')) {
usedWidth += $(this).outerWidth(true);
}
});
Expand Down

0 comments on commit 8e2f40c

Please sign in to comment.