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

Unified Diff: ui/webui/resources/js/cr/ui/position_util.js

Issue 1654703002: Revert of MD History: Add basic material design history cards and history items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « chrome/browser/ui/webui/browsing_history_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c0c483b919685e4d37e1a3919eba3a5ed368f411..14b29d92d97b9d3d592255e0787d15c820979376 100644
--- a/ui/webui/resources/js/cr/ui/position_util.js
+++ b/ui/webui/resources/js/cr/ui/position_util.js
@@ -226,9 +226,8 @@
* @param {number} x The client x position.
* @param {number} y The client y position.
* @param {!HTMLElement} popupElement The popup element we are positioning.
- * @param {cr.ui.AnchorType=} opt_anchorType The type of anchoring we want.
- */
- function positionPopupAtPoint(x, y, popupElement, opt_anchorType) {
+ */
+ function positionPopupAtPoint(x, y, popupElement) {
var rect = {
left: x,
top: y,
@@ -237,9 +236,7 @@
right: x,
bottom: y
};
-
- var anchorType = opt_anchorType || AnchorType.BELOW;
- positionPopupAroundRect(rect, popupElement, anchorType);
+ positionPopupAroundRect(rect, popupElement, AnchorType.BELOW);
}
// Export
« no previous file with comments | « chrome/browser/ui/webui/browsing_history_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698