| Index: ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js
|
| diff --git a/chrome/browser/resources/settings/settings_action_menu.js b/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js
|
| similarity index 97%
|
| rename from chrome/browser/resources/settings/settings_action_menu.js
|
| rename to ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js
|
| index 808a7bf792bd175fbbdca594110fa4f025380d3f..208b2aad658f1fdaccbe4f0a19433f4924385c42 100644
|
| --- a/chrome/browser/resources/settings/settings_action_menu.js
|
| +++ b/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js
|
| @@ -3,7 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| Polymer({
|
| - is: 'settings-action-menu',
|
| + is: 'cr-action-menu',
|
| extends: 'dialog',
|
|
|
| /**
|
| @@ -122,7 +122,7 @@ Polymer({
|
| this.showModal();
|
|
|
| var rect = anchorElement.getBoundingClientRect();
|
| - if (new settings.DirectionDelegateImpl().isRtl()) {
|
| + if (getComputedStyle(anchorElement).direction == 'rtl') {
|
| var right = window.innerWidth - rect.left - this.offsetWidth;
|
| this.style.right = right + 'px';
|
| } else {
|
|
|