Skip to content

Commit

Permalink
Force box-sizing: border-box on sortable helper (clauderic#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Clauderic Demers committed Oct 18, 2016
1 parent 5952229 commit 2a737fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SortableContainer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ export default function SortableContainer(WrappedComponent, config = {withRef: f
this.helper.style.top = `${this.boundingClientRect.top - margin.top}px`;
this.helper.style.left = `${this.boundingClientRect.left - margin.left}px`;
this.helper.style.width = `${this.width}px`;
this.helper.style.boxSizing = 'border-box';

if (hideSortableGhost) {
this.sortableGhost = node;
Expand Down

0 comments on commit 2a737fe

Please sign in to comment.