Expose refresh functionality

This commit is contained in:
Kamran Ahmed
2019-02-08 01:10:42 +04:00
parent fc530677a5
commit c95a54df71
2 changed files with 12 additions and 0 deletions
+7
View File
@@ -155,6 +155,13 @@ export default class Driver {
return;
}
this.refresh();
}
/**
* Refreshes and repositions the popover and the overlay
*/
refresh() {
this.overlay.refresh();
}
+5
View File
@@ -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