mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Make sure the dragger cover properly covers the dragger
This commit is contained in:
parent
76faba2d9f
commit
f8f524d378
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user