Skip to content

Commit

Permalink
Merge pull request #15 from rkunev/fix/add-default-size-of-palette
Browse files Browse the repository at this point in the history
fix: Add default width when generating conic gradient
  • Loading branch information
talamaska authored Dec 4, 2017
2 parents ccaeb0f + 445101c commit 9cf6b78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/color-picker-conic-gradient.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import ConicGradient from './conic-gradient.js';

export default function colorPickerConicGradient() {
return function ($scope, $element) {
$element[0].style.background = new ConicGradient($element[0].offsetWidth).toString();
var size = $element[0].offsetWidth || 280;
$element[0].style.background = new ConicGradient(size).toString();
}
}

0 comments on commit 9cf6b78

Please sign in to comment.