Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Commit

Permalink
Merge pull request #16 from jukkakoskinen/placeholder-fix
Browse files Browse the repository at this point in the history
Fixed placeholder size for box-sizing: border-box
  • Loading branch information
rkusa committed Jul 30, 2014
2 parents ae2ac7f + 90591c6 commit 6dbaa40
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions touch-dnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,8 @@
}

if (this.opts.forcePlaceholderSize) {
this.placeholder.height(dragging.el.height())
this.placeholder.width(dragging.el.width())
this.placeholder.height(parseFloat(dragging.el.css('height')))
this.placeholder.width(parseFloat(dragging.el.css('width')))
}

dragging.adjustPlacement(e)
Expand Down Expand Up @@ -643,8 +643,8 @@
dragging.placeholder = this.placeholder

if (this.opts.forcePlaceholderSize) {
this.placeholder.height(dragging.el.height())
this.placeholder.width(dragging.el.width())
this.placeholder.height(parseFloat(dragging.el.css('height')))
this.placeholder.width(parseFloat(dragging.el.css('width')))
}

if (!isContainer) {
Expand Down Expand Up @@ -831,4 +831,4 @@
items: 'li, div',
placeholder: 'placeholder'
})
}(window.Zepto || window.jQuery)
}(window.Zepto || window.jQuery)

0 comments on commit 6dbaa40

Please sign in to comment.