Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2772)

Unified Diff: chrome/browser/resources/uber/uber_utils.js

Issue 14053006: History: Workaround bug with clear button in search field. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/uber/uber_utils.js
diff --git a/chrome/browser/resources/uber/uber_utils.js b/chrome/browser/resources/uber/uber_utils.js
index 0727a89855b8906ec6dac04028ad87a5a3cb0019..763b55650461229dbfde51c5363471f65f8b0f0c 100644
--- a/chrome/browser/resources/uber/uber_utils.js
+++ b/chrome/browser/resources/uber/uber_utils.js
@@ -36,8 +36,12 @@ cr.define('uber', function() {
*/
function handleScroll() {
var offset = document.body.scrollLeft * -1;
- for (var i = 0; i < headerElements.length; i++)
- headerElements[i].style.webkitTransform = 'translateX(' + offset + 'px)';
+ for (var i = 0; i < headerElements.length; i++) {
+ // As a workaround for http://crbug.com/231830, set the transform to
+ // 'none' rather than 0px.
+ headerElements[i].style.webkitTransform = offset ?
+ 'translateX(' + offset + 'px)' : 'none';
+ }
invokeMethodOnParent('adjustToScroll', document.body.scrollLeft);
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698