Skip to content

Commit

Permalink
Added a saftey net of 1px with the calc polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
IanCaunce committed Dec 14, 2014
1 parent feeb790 commit 4d9a3a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/rrssb.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@
smallBtnFraction = pixelsOff / regButtonCount;

// if calc is not supported. calculate the width on the fly.
if (support.calc === false) {
magicWidth = (self.innerWidth() / regButtonCount) - smallBtnFraction;
if (true ||support.calc === false) {
magicWidth = ((self.innerWidth()-1) / regButtonCount) - smallBtnFraction;
magicWidth = Math.floor(magicWidth*1000) / 1000;
magicWidth += 'px';
} else {
Expand Down
4 changes: 2 additions & 2 deletions js/rrssb.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4d9a3a8

Please sign in to comment.