summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-09-10 21:26:07 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-09-10 21:26:07 -0700
commit25ea6085b78423ee651dc21b639c5f10f59dcaf0 (patch)
treeb4f464f74d31a78812d6637416e6bcef29eda497
parentedb33334f13139ee9a40c2849900767585cb9097 (diff)
Reset the margins when the mouse is over a thumbnail when dragging. When the border is displayed then adjust the margin to account for the border. Just hidding the border causes things to move.
-rw-r--r--modules/organize/js/organize.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/organize/js/organize.js b/modules/organize/js/organize.js
index 0aeb4f7c..c30f89e0 100644
--- a/modules/organize/js/organize.js
+++ b/modules/organize/js/organize.js
@@ -122,12 +122,12 @@
mouse_move_handler: function(event) {
if ($(".gDragHelper").length) {
- $(".gOrganizeMicroThumbGridCell").css("borderStyle", "hidden");
+ $(".gOrganizeMicroThumbGridCell").css({borderStyle: "hidden", margin: "4px"});
$(".currentDropTarget").removeClass("currentDropTarget");
var borderStyle = event.pageX < $(this).offset().left + $(this).width() / 2 ?
- "borderLeftStyle" : "borderRightStyle";
+ {borderLeftStyle: "solid", marginLeft: "2px"} : {borderRightStyle: "solid", marginRight: "2px"};
$(this).addClass("currentDropTarget")
- .css(borderStyle, "solid");
+ .css(borderStyle);
}
},