MCPcopy
hub / github.com/angular/components / _isTooltipMultiline

Method _isTooltipMultiline

src/material/tooltip/tooltip.ts:1108–1111  ·  view source on GitHub ↗

Whether the tooltip text has overflown to the next line

()

Source from the content-addressed store, hash-verified

1106
1107 /** Whether the tooltip text has overflown to the next line */
1108 private _isTooltipMultiline() {
1109 const rect = this._elementRef.nativeElement.getBoundingClientRect();
1110 return rect.height > MIN_HEIGHT && rect.width >= MAX_WIDTH;
1111 }
1112
1113 /** Event listener dispatched when an animation on the tooltip finishes. */
1114 _handleAnimationEnd({animationName}: AnimationEvent) {

Callers 1

_onShowMethod · 0.95

Calls 1

getBoundingClientRectMethod · 0.80

Tested by

no test coverage detected