summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources
diff options
context:
space:
mode:
authorarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-09 22:56:53 +0000
committerarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-09 22:56:53 +0000
commit8aea979e3a6cf2c5dc9f508ab247431834d8aac2 (patch)
treeb3a3186962a1b2fac45473853147015306b4244e /chrome/browser/resources
parent198bcfe93dd75609fd50caca76f702b28934f48c (diff)
downloadchromium_src-8aea979e3a6cf2c5dc9f508ab247431834d8aac2.zip
chromium_src-8aea979e3a6cf2c5dc9f508ab247431834d8aac2.tar.gz
chromium_src-8aea979e3a6cf2c5dc9f508ab247431834d8aac2.tar.bz2
NNTP: Fix issue where dragged thumbnail had the wrong z-index.
BUG=20903 TEST=Drag a thumbnail and release the mouse where you drqagged the thumbnail from. Now, be quick, and drag the same thumbnail again. THe thumbnail should not be displayed behind any other thumbnails. Review URL: http://codereview.chromium.org/203006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25811 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r--chrome/browser/resources/new_new_tab.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/resources/new_new_tab.js b/chrome/browser/resources/new_new_tab.js
index 5866c6b..3b4dfe2 100644
--- a/chrome/browser/resources/new_new_tab.js
+++ b/chrome/browser/resources/new_new_tab.js
@@ -872,8 +872,8 @@ function afterTransition(f) {
// Make sure we do not use a timer during load since it slows down the UI.
f();
} else {
- // The duration of all transitions are 500ms
- window.setTimeout(f, 500);
+ // The duration of all transitions are .15s
+ window.setTimeout(f, 150);
}
}
@@ -1558,6 +1558,7 @@ var dnd = {
item.style.left = x + 'px';
item.style.top = y + 'px';
+ item.style.zIndex = 2;
},
// We listen to mousedown to get the relative position of the cursor for dnd.