Skip to content

Commit bbda4de

Browse files
committed
chore(*): update api docs; add typing
1 parent 0f52b6f commit bbda4de

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

projects/igniteui-angular/core/src/services/overlay/overlay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export class IgxOverlayService implements OnDestroy {
332332
info.settings = eventArgs.settings;
333333
this._overlayInfos.push(info);
334334
info.hook = this.placeElementHook(info.elementRef.nativeElement);
335-
let elementRect;
335+
let elementRect: DOMRect;
336336
// Get the element rect size before moving it into the overlay to cache its size.
337337
if (info.settings.cacheSize) {
338338
elementRect = info.elementRef.nativeElement.getBoundingClientRect();

projects/igniteui-angular/core/src/services/overlay/utilities.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ export interface OverlaySettings {
136136
excludeFromOutsideClick?: HTMLElement[];
137137
/**
138138
* @hidden @internal
139-
* Set if the element should retain its size when moved to the overlay.
139+
* Controls whether element size is measured before (true) or after (false) moving to the overlay container.
140+
* Default is true to retain element size.
140141
*/
141142
cacheSize?: boolean;
142143
}

0 commit comments

Comments
 (0)