我已经创建了这个滚动面板:
var app = UiApp.createApplication();
var scroll = app.createScrollPanel().setPixelSize(500, 300);
var panel = app.createVerticalPanel();
scroll.add(panel);
app.add(scroll);
spreadsheet.show(app);
但我无法让此滚动面板大于setPixelSize(500, 300);
,因为在这种情况下,submit
按钮未显示。如何增加面板的尺寸?
答案 0 :(得分:0)
不要忘记你可以定义uiApp实例本身的大小,它可能会解决你的问题......
function myFunction() {
var spreadsheet = SpreadsheetApp.getActive();
var app = UiApp.createApplication().setHeight(800).setWidth(1500);
var scroll = app.createScrollPanel().setPixelSize(500, 300);
var panel = app.createVerticalPanel();
scroll.add(panel);
app.add(scroll);
spreadsheet.show(app);
}