1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Plugins: Resolves #5288: Improved support for fitToContent webview property (#5298)

This commit is contained in:
Ahmad Mamdouh
2021-08-18 13:09:45 +02:00
committed by GitHub
parent d0313585be
commit 9b27b3b1fb
5 changed files with 40 additions and 3 deletions

View File

@ -98,4 +98,12 @@ export default class JoplinViewsDialogs {
return this.controller(handle).open();
}
/**
* Toggle on whether to fit the dialog size to the content or not.
* When set to false, the dialog is set to 90vw and 80vh
* @default true
*/
async setFitToContent(handle: ViewHandle, status: boolean) {
return this.controller(handle).fitToContent = status;
}
}