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; |