Skip to content

Commit

Permalink
👌 IMPROVE: recalculated square dimensions for full color range
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdevore committed Mar 26, 2018
1 parent c17f2d5 commit f3aee6c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/hue-basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,8 @@

control = this.controls.squareDrag;
dimensions = {
w: square.width(),
h: square.height()
w: square.width() - control.width(),
h: square.height() - control.height()
};
square.data( 'dimensions', dimensions );
return dimensions;
Expand Down
2 changes: 1 addition & 1 deletion dist/hue-basic.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/hue.js
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,8 @@

control = this.controls.squareDrag;
dimensions = {
w: square.width(),
h: square.height()
w: square.width() - control.width(),
h: square.height() - control.height()
};
square.data( 'dimensions', dimensions );
return dimensions;
Expand Down
2 changes: 1 addition & 1 deletion dist/hue.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/hue.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,8 +767,8 @@

control = this.controls.squareDrag;
dimensions = {
w: square.width(),
h: square.height()
w: square.width() - control.width(),
h: square.height() - control.height()
};
square.data( 'dimensions', dimensions );
return dimensions;
Expand Down

0 comments on commit f3aee6c

Please sign in to comment.