Skip to content

Commit cc6f981

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored andcommitted
[cleanup] Use common helper
As discussed the was overlooked an should use the helper class, for consistency Bug: none Change-Id: Ib617ab93cdcc7d141e1c4f977e66071441a818b6 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7096060 Auto-Submit: Nikolay Vitkov <[email protected]> Reviewed-by: Ergün Erdoğmuş <[email protected]> Commit-Queue: Nikolay Vitkov <[email protected]> Commit-Queue: Ergün Erdoğmuş <[email protected]>
1 parent 3ef251c commit cc6f981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

front_end/ui/components/tooltips/Tooltip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ export class Tooltip extends HTMLElement {
443443
this.#previousAnchorRect = anchorRect;
444444
this.#previousPopoverRect = currentPopoverRect;
445445

446-
const inspectorViewRect = UI.InspectorView.InspectorView.instance().element.getBoundingClientRect();
446+
const inspectorViewRect = UI.UIUtils.getDevToolsBoundingElement().getBoundingClientRect();
447447
const preferredPositions =
448448
this.preferSpanLeft ? [PositionOption.BOTTOM_SPAN_LEFT, PositionOption.TOP_SPAN_LEFT] : [];
449449
const proposedPopoverRect = this.variant === 'rich' ?

0 commit comments

Comments
 (0)