Skip to content

Commit

Permalink
Set IFRAME sandbox mode to avoid Caja browser errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
burnnat committed Jun 26, 2015
1 parent 23053d1 commit 4c3ec89
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Page Sizer/Code.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ function showDialog() {
var dialog = (
HtmlService.createTemplateFromFile('Dialog')
.evaluate()
.setWidth(250)
.setHeight(145)
.setWidth(280)
.setHeight(160)
.setSandboxMode(HtmlService.SandboxMode.IFRAME)
);

DocumentApp.getUi().showModalDialog(dialog, 'Custom page size');
Expand Down

0 comments on commit 4c3ec89

Please sign in to comment.