Index: chrome/browser/resources/options2/options_page.js |
=================================================================== |
--- chrome/browser/resources/options2/options_page.js (revision 119926) |
+++ chrome/browser/resources/options2/options_page.js (working copy) |
@@ -723,13 +723,14 @@ |
}; |
/** |
- * Update the left of all the position: fixed; header elements. |
+ * Update the start margin of all the position: fixed; header elements. |
* @private |
*/ |
OptionsPage.updateAllHeaderElementPositions_ = function() { |
- var translate = 'translateX(' + (document.body.scrollLeft * -1) + 'px)'; |
+ var adjust = document.documentElement.dir == 'rtl' ? 1 : -1; |
Dan Beam
2012/01/31 22:49:49
use isRTL()
csilv
2012/01/31 23:45:19
Done.
|
+ var marginStart = (document.body.scrollLeft * adjust) + 'px'; |
Dan Beam
2012/01/31 22:49:49
the JavaScript style guide would probably want to
csilv
2012/01/31 23:45:19
Done.
|
for (var i = 0; i < this.fixedHeaders_.length; ++i) |
- this.fixedHeaders_[i].style.webkitTransform = translate; |
+ this.fixedHeaders_[i].style.webkitMarginStart = marginStart; |
uber.invokeMethodOnParent('adjustToScroll', document.body.scrollLeft); |
}; |