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

Fixed placeholder size for box-sizing: border-box #16

Merged
merged 1 commit into from
Jul 30, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)