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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/Popover.js

Issue 2658383002: [DevTools] Make UI.GlassPane position contentElement for different overlay controls. (Closed)
Patch Set: rebased Created 3 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
Index: third_party/WebKit/Source/devtools/front_end/ui/Popover.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Popover.js b/third_party/WebKit/Source/devtools/front_end/ui/Popover.js
index 7953b7a6cab4ad7a61da739cf6053520dcb58c6a..375a9c0d1311d30accc82276b3c2711890a99489 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Popover.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Popover.js
@@ -165,7 +165,7 @@ UI.Popover = class extends UI.Widget {
// Skinny tooltips are not pretty, their arrow location is not nice.
preferredWidth = Math.max(preferredWidth, 50);
// Position relative to main DevTools element.
- const container = UI.Dialog.modalHostView().element;
+ const container = UI.GlassPane.container(/** @type {!Document} */ (this._containerElement.ownerDocument));
const totalWidth = container.offsetWidth;
const totalHeight = container.offsetHeight;

Powered by Google App Engine
This is Rietveld 408576698