Skip to content

Commit

Permalink
Use Number.toFixed() for alpha component of rgba quads when reflectin…
Browse files Browse the repository at this point in the history
…g color picker value to CSS source.
  • Loading branch information
toolness committed Jan 20, 2012
1 parent ab6009a commit 049e57b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static-files/scripts/editor.js
Expand Up @@ -159,7 +159,7 @@ var Editor = (function() {
value = 'rgba(' + Math.floor(rgba.r * 255) + ', ' +
Math.floor(rgba.g * 255) + ', ' +
Math.floor(rgba.b * 255) + ', ' +
rgba.a + ')';
rgba.a.toFixed(3) + ')';
}
inCursorActivity = true;
editor.replaceRange(value, {
Expand Down

0 comments on commit 049e57b

Please sign in to comment.