diff --git a/src/index.js b/src/index.js index a195c0550aec3288061fb1d42d7b5cab61d9ceb3..934082f6945039c6c9b7eb1429e77501575c3128 100644 --- a/src/index.js +++ b/src/index.js @@ -155,6 +155,13 @@ export default class Driver { return; } + this.refresh(); + } + + /** + * Refreshes and repositions the popover and the overlay + */ + refresh() { this.overlay.refresh(); } diff --git a/types/index.d.ts b/types/index.d.ts index 4d9de478ae6f6263f9676a87a124bc36a2b9ca50..b49207aa49346428f022550d6728535e3de67d49 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -69,6 +69,11 @@ declare module 'driver.js' { */ private onResize(): void; + /** + * Refreshes and repositions the popover and the overlay + */ + private refresh(): void; + /** * Makes it operable with keyboard * @param {Event} e