Skip to content

Commit

Permalink
#170: add missing 'px' suffixes to css lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
ispringer authored and bgrins committed Feb 1, 2014
1 parent e488d5e commit ac1b95a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spectrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -765,19 +765,19 @@
Math.min(dragHeight - dragHelperHeight, dragY - dragHelperHeight)
);
dragHelper.css({
"top": dragY,
"left": dragX
"top": dragY + "px",
"left": dragX + "px"
});

var alphaX = currentAlpha * alphaWidth;
alphaSlideHelper.css({
"left": alphaX - (alphaSlideHelperWidth / 2)
"left": (alphaX - (alphaSlideHelperWidth / 2)) + "px"
});

// Where to show the bar that displays your current selected hue
var slideY = (currentHue) * slideHeight;
slideHelper.css({
"top": slideY - slideHelperHeight
"top": (slideY - slideHelperHeight) + "px"
});
}
}
Expand Down

0 comments on commit ac1b95a

Please sign in to comment.