### Eclipse Workspace Patch 1.0
#P drupal_test_6
Index: misc/tabledrag.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/tabledrag.js,v
retrieving revision 1.11
diff -u -r1.11 tabledrag.js
--- misc/tabledrag.js	16 Dec 2007 10:36:52 -0000	1.11
+++ misc/tabledrag.js	17 Dec 2007 20:11:33 -0000
@@ -75,9 +75,10 @@
     // Find the width of indentations to measure mouse movements against.
     // Because the table doesn't need to start with any indentations, we
     // manually create an empty div, check it's width, then remove.
-    var indent = $(Drupal.theme('tableDragIndentation')).appendTo('body');
-    this.indentAmount = parseInt(indent.css('width'));
-    indent.remove();
+    var indent = Drupal.theme('tableDragIndentation');
+    var indentTest = $('<div></div>').appendTo('body').append(indent).append(indent);
+    this.indentAmount = $('.indentation', indentTest).get(1).offsetLeft - $('.indentation', indentTest).get(0).offsetLeft;
+    indentTest.remove();
   }
 
   // Make each applicable row draggable.
@@ -380,7 +381,7 @@
       self.oldX = x;
       var xDiff = self.currentMouseCoords.x - self.dragObject.indentMousePos.x;
       // Set the number of indentations the mouse has been moved left or right.
-      var indentDiff = parseInt(xDiff / self.indentAmount * self.rtl);
+      var indentDiff = Math.round(xDiff / self.indentAmount * self.rtl);
       // Limit the indentation to no less than the left edge of the table and no
       // more than the total amount of indentation in the table.
       indentDiff = indentDiff > 0 ? Math.min(indentDiff, self.indentCount - self.rowObject.indents + 1) : Math.max(indentDiff, -self.rowObject.indents);
