1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-27 23:28:38 +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

@ -58,6 +58,7 @@ export default class WebviewController extends ViewController {
scripts: [],
opened: false,
buttons: null,
fitToContent: true,
},
});
}
@ -173,4 +174,11 @@ export default class WebviewController extends ViewController {
this.setStoreProp('buttons', buttons);
}
public get fitToContent(): boolean {
return this.storeView.fitToContent;
}
public set fitToContent(fitToContent: boolean) {
this.setStoreProp('fitToContent', fitToContent);
}
}