diff options
author | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-15 01:29:05 +0000 |
---|---|---|
committer | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-15 01:29:05 +0000 |
commit | 5c469efa13123f160b6f276a6eeda32d4fdea66d (patch) | |
tree | 3d114141105457ae6ba58f555e4219d2e588f04f /chrome/browser/resources/new_new_tab.js | |
parent | f18fdc277a982ad2aded65ea7b13a2df341590c9 (diff) | |
download | chromium_src-5c469efa13123f160b6f276a6eeda32d4fdea66d.zip chromium_src-5c469efa13123f160b6f276a6eeda32d4fdea66d.tar.gz chromium_src-5c469efa13123f160b6f276a6eeda32d4fdea66d.tar.bz2 |
NNTP: Lots of small tweaks
* Remove focus outline for buttons
* Thumbnail links should not have underline (and be black)
* Make the edit bar animation slide up from the thumbnail
* Make animations a lot faster
* Fix issue where a thumbnail got stuck in hover mode after DnD.
* Make the thumbnails come first when tabbing
* Remove focus outline for the buttons and clean up focus outline in the list mode.
BUG=16061, 16449, 16342, 16542
TEST=See bugs
Review URL: http://codereview.chromium.org/155542
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20705 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/new_new_tab.js')
-rw-r--r-- | chrome/browser/resources/new_new_tab.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/resources/new_new_tab.js b/chrome/browser/resources/new_new_tab.js index 5bebc13..c6e661f 100644 --- a/chrome/browser/resources/new_new_tab.js +++ b/chrome/browser/resources/new_new_tab.js @@ -1117,8 +1117,13 @@ var dnd = { if (this.canDropOnElement(dropTarget)) { dropTarget.style.zIndex = 1; mostVisited.swapPosition(this.dragItem, dropTarget); - mostVisited.invalidate(); - mostVisited.layout(); + // The timeout below is to allow WebKit to see that we turned off + // pointer-event before moving the thumbnails so that we can get out of + // hover mode. + window.setTimeout(function() { + mostVisited.invalidate(); + mostVisited.layout(); + }, 10); e.preventDefault(); if (this.dragEndTimer) { window.clearTimeout(this.dragEndTimer); |