Permalink
Browse files

Fixing positioning issues in Chrome

  • Loading branch information...
1 parent 677d112 commit 39c1da2fa2d55e1a6b3cd11d9d4c31c9484f7910 @mattt committed Jun 25, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 jquery.chroma-hash.js
View
@@ -99,10 +99,10 @@
"-ms-transition": "background 0.5s",
};
- if (navigator.userAgent.indexOf("Safari") > -1 && navigator.userAgent.indexOf("Chrome") < 0) {
- properties.marginTop = "3px";
+ if (navigator.userAgent.indexOf("Safari") > -1) {
+ properties["marginTop"] = "3px";
} else {
- properties.marginTop = "1px";
+ properties["marginTop"] = "1px";
}
$(this).css(properties);

0 comments on commit 39c1da2

Please sign in to comment.