From f8f524d3788ea33b7fa2f4dd44517394ccd33a1f Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 26 Oct 2013 10:29:52 +0100 Subject: [PATCH] Make sure the dragger cover properly covers the dragger --- core/modules/new_widgets/link.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/modules/new_widgets/link.js b/core/modules/new_widgets/link.js index 7825a625b..d17f7adca 100755 --- a/core/modules/new_widgets/link.js +++ b/core/modules/new_widgets/link.js @@ -116,10 +116,10 @@ LinkWidget.prototype.handleDragStartEvent = function(event) { var bounds = this.dragImage.firstChild.getBoundingClientRect(), cover = this.document.createElement("div"); cover.className = "tw-tiddler-dragger-cover"; - cover.style.left = (bounds.left - 8) + "px"; - cover.style.top = (bounds.top - 8) + "px"; - cover.style.width = (bounds.width + 16) + "px"; - cover.style.height = (bounds.height + 16) + "px"; + cover.style.left = (bounds.left - 16) + "px"; + cover.style.top = (bounds.top - 16) + "px"; + cover.style.width = (bounds.width + 32) + "px"; + cover.style.height = (bounds.height + 32) + "px"; this.dragImage.appendChild(cover); // Set the data transfer properties var dataTransfer = event.dataTransfer;