diff --git a/touch-dnd.js b/touch-dnd.js index 35f4aaa..58470ab 100644 --- a/touch-dnd.js +++ b/touch-dnd.js @@ -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) @@ -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) { @@ -831,4 +831,4 @@ items: 'li, div', placeholder: 'placeholder' }) -}(window.Zepto || window.jQuery) \ No newline at end of file +}(window.Zepto || window.jQuery)