diff options
author | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 18:30:55 +0000 |
---|---|---|
committer | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 18:30:55 +0000 |
commit | a05c2ef0084fecfdfe297abeb2a6268b73abfce5 (patch) | |
tree | c2db719dc6dfd33abec2b47fdc8c7a22c1b5fa7f /chrome/browser/resources | |
parent | a66a0a197cee727c68465a0068d7276021d5a07d (diff) | |
download | chromium_src-a05c2ef0084fecfdfe297abeb2a6268b73abfce5.zip chromium_src-a05c2ef0084fecfdfe297abeb2a6268b73abfce5.tar.gz chromium_src-a05c2ef0084fecfdfe297abeb2a6268b73abfce5.tar.bz2 |
Bookmark Manager: Set the direction and the font size based on the language.
BUG=36457
TEST=Change the language to Hebrew (for example) and notice the RTL UI.
Review URL: http://codereview.chromium.org/652079
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39748 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r-- | chrome/browser/resources/bookmark_manager/main.html | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/chrome/browser/resources/bookmark_manager/main.html b/chrome/browser/resources/bookmark_manager/main.html index c8a1f7c..7a1ea2b 100644 --- a/chrome/browser/resources/bookmark_manager/main.html +++ b/chrome/browser/resources/bookmark_manager/main.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html> +<html i18n-values="dir:textdirection"> <!-- Copyright (c) 2010 The Chromium Authors. All rights reserved. @@ -310,12 +310,12 @@ if (!chrome.bookmarks) window.location.reload(); // Allow platform specific CSS rules. -if (/Mac/.test(navigator.platform)) +if (cr.isMac) document.documentElement.setAttribute('os', 'mac'); </script> </head> -<body> +<body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> <div class="header"> <button onclick="resetSearch()" class="logo" tabindex=3></button> @@ -706,6 +706,10 @@ var dnd = { var dragData = this.dragData; if (!dragData) return false; + + if (this.isOverRecentOrSearch(overElement)) + return false; + if (!dragData.sameProfile) return true; @@ -722,9 +726,6 @@ var dnd = { if (overBookmarkNode.id == dragId) return false; - if (this.isOverRecentOrSearch(overElement)) - return false; - // If we are dragging a folder we cannot drop it on any of its descendants var dragBookmarkNode = bmm.treeLookup[dragId]; if (dragBookmarkNode && bmm.isFolder(dragBookmarkNode) && |