example code of dialog box makes a mess

2019-03-07 08:23发布

I did:

function doGet() {
var app = UiApp.createApplication();
// Create a dialog box.
var dialog = app.createDialogBox();
// Add a label to the dialog and set the dimensions and position.
dialog.setPopupPosition(100, 100).setSize(500, 500).show();
// Show the dialog. Note that it does not have to be "added" to the UiInstance.
dialog.show();
return app;
}

Deployed and got: enter image description here

This is obviously not what I expected. what am I doing wrong?

1条回答
Rolldiameter
2楼-- · 2019-03-07 09:00

Don't worry, .createDialogBox() seems to be broken. Write your entry into the issue tracker I'll star it as soon as your entry shows up there.

I use PopupPanel which works fine and gives the same functionality minus the draggability

查看更多
登录 后发表回答