Apps脚本小工具设置100%宽度和高度错误? [英] Apps Script Gadget Setting 100% Width and Height Bug?

查看:99
本文介绍了Apps脚本小工具设置100%宽度和高度错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google网站的网页中嵌入了一个UiApp,其中包含一个可伸缩的网站。小工具的宽度和高度可以根据可弯曲的项目数量而变化;所以当我嵌入它时,我将宽度和高度留在小工具设置中,以便让UiApp显示100%的宽度和高度(如小工具设置中的指示)。然而,它从来没有表现出100%的身高;当我检查网页的HTML时,我发现宽度&高度始终设置为特定值(width =500height =600),因此我的显示屏被剪切并未完全显示。

如何确保我的UiApp完全显示在页面中?



谢谢

解决方案

留空100%仅适用于宽度属性。您将不得不为脚本确定一些适当的高度。此外,如果您可以将高度设置为100%,则告诉浏览器使小工具填充100% 容器(即小工具周围的页面)。它不会告诉浏览器填充中的内容的100%。


I embedded a UiApp in a webpage in Google Site that contains a flextable. The width and height of the gadget can change depending on how many items are in the flextable; so when I embed it I leave the width and height blank in the gadget setting in order to get the UiApp shown 100% width and height (as instructed in the gadget setting). However, its never shown 100% height; when I check the HTML of the webpage I found that the width & the height is always set to a certain value (width="500" height="600") so my display is cut and not shown fully.

How do I ensure that my UiApp are fully shown in the page?

Thanks

解决方案

The "leave blank for 100%" only works on the width attribute. You will have to determine some appropriate height for your script. I do not think there is a work around.

Furthermore, if you were able to set the height to 100%, that tells the browser to make the gadget fill 100% of the container (i.e. the page around the gadget). It does not tell the browser to fill 100% of the contents inside.

这篇关于Apps脚本小工具设置100%宽度和高度错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆