| Index: ui/webui/resources/js/cr/ui/position_util.js
|
| diff --git a/ui/webui/resources/js/cr/ui/position_util.js b/ui/webui/resources/js/cr/ui/position_util.js
|
| index 0f86bbf6c5449992d7266040ce942991863314c5..14b29d92d97b9d3d592255e0787d15c820979376 100644
|
| --- a/ui/webui/resources/js/cr/ui/position_util.js
|
| +++ b/ui/webui/resources/js/cr/ui/position_util.js
|
| @@ -211,13 +211,14 @@ cr.define('cr.ui', function() {
|
| * to.
|
| * @param {!HTMLElement} popupElement The popup element we are positioning.
|
| * @param {cr.ui.AnchorType} type The type of anchoring we want.
|
| - * @param {boolean} invertLeftRight Whether to invert the right/left
|
| + * @param {boolean=} opt_invertLeftRight Whether to invert the right/left
|
| * alignment.
|
| */
|
| function positionPopupAroundElement(anchorElement, popupElement, type,
|
| - invertLeftRight) {
|
| + opt_invertLeftRight) {
|
| var anchorRect = anchorElement.getBoundingClientRect();
|
| - positionPopupAroundRect(anchorRect, popupElement, type, invertLeftRight);
|
| + positionPopupAroundRect(anchorRect, popupElement, type,
|
| + !!opt_invertLeftRight);
|
| }
|
|
|
| /**
|
|
|