简体   繁体   English

使用Google Apps脚本在Google工作表中边栏宽度未更改

[英]Sidebar width not changing in Google sheet using Google apps script

Sidebar width not changing in Google sheet using Google apps script 使用Google Apps脚本在Google工作表中边栏宽度未更改

function onOpen()
{
  var html = HtmlService.createHtmlOutputFromFile('side').setTitle('Custom sidebar').setWidth(150);
  SpreadsheetApp.getUi().showSidebar(html);
}

This is the sheet , code is in Tools>script editor of this sheet. 这是工作表,代码在此工作表的“工具”>“脚本编辑器”中。 https://docs.google.com/spreadsheets/d/1hCOU5mUQxaXRz6JTyO6IZphVkfiii1RS5OsLhMJWFNY/edit?usp=sharing https://docs.google.com/spreadsheets/d/1hCOU5mUQxaXRz6JTyO6IZphVkfiii1RS5OsLhMJWFNY/edit?usp=sharing

In Google Docs and Forms, sidebars now ignore the setWidth() method; 现在,在Google文档和表单中,边栏会忽略setWidth()方法; they cannot be changed from the default width of 300px. 它们不能从默认宽度300px更改。 This change was applied to the new version of Sheets in the previous week's release. 此更改已应用到上一周发行的新版表格中。

https://developers.google.com/apps-script/releases/#february_2014 https://developers.google.com/apps-script/releases/#february_2014

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM