Bug 579472 - Dragging an app tab does not show the drop indicator in the correct location. r=gavin
authorDão Gottwald <dao@mozilla.com>
Fri, 30 Jul 2010 08:51:25 +0200
changeset 48399 b5781cd2d4fc5093af25815ea8454e8b0d1ac49e
parent 48398 26dc2e50858786b9335790ba22d62731af87d23c
child 48400 5b189034696e45fa4c3f0767fee81fba2abd520f
push id14713
push userdgottwald@mozilla.com
push dateFri, 30 Jul 2010 06:53:57 +0000
treeherdermozilla-central@5b189034696e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs579472
milestone2.0b3pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 579472 - Dragging an app tab does not show the drop indicator in the correct location. r=gavin
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -2882,21 +2882,16 @@
           }
           else {
             let tabRect = this.childNodes[newIndex].getBoundingClientRect();
             if (ltr)
               newMargin = tabRect.left - rect.left;
             else
               newMargin = rect.right - tabRect.right;
           }
-          // ensure we never place the drop indicator beyond our limits
-          if (newMargin < minMargin)
-            newMargin = minMargin;
-          else if (newMargin > maxMargin)
-            newMargin = maxMargin;
         }
 
         ind.collapsed = false;
 
         newMargin += ind.clientWidth / 2;
         if (!ltr)
           newMargin *= -1;