Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing positioning issues in Chrome

  • Loading branch information...
commit 39c1da2fa2d55e1a6b3cd11d9d4c31c9484f7910 1 parent 677d112
@mattt authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 jquery.chroma-hash.js
View
6 jquery.chroma-hash.js
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.