找回密码
 立即注册

QQ登录

只需一步,快速开始

wby1990

银牌会员

5

主题

10

帖子

3145

积分

银牌会员

积分
3145

活字格认证

最新发帖
wby1990
银牌会员   /  发表于:2015-1-22 07:56  /   查看:5912  /  回复:3
RT 没找到setHeight这样子的方法。。

3 个回复

倒序浏览
Alice
社区贡献组   /  发表于:2015-1-22 15:09:00
沙发
回复 1楼wby1990的帖子

可以创建DOM元素的时候,设置宽和高,比如代码。
  1. //Create the DOM element that is the target of the SpreadJS widget.
  2. //JavaScript
  3. <div id="spreadContainer" style="width: 600px; height: 400px; border: 1px solid gray">
  4. </div>
  5. </body>
  6. </html>
复制代码


另外spreadjs的Rectangle的高和宽也可以获取,具体参考文档:
http://helpcentral.componentone. ... bframe.html#Spread~$.wijmo.wijspread.Rect~height.html
http://helpcentral.componentone. ... bframe.html#Spread~$.wijmo.wijspread.Rect~width.html
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
wby1990
银牌会员   /  发表于:2015-1-22 15:16:00
板凳
回复 2楼Alice的帖子

谢谢回复!
不过我的Spreadjs控件是在iframe界面中,父窗体大小改变后,里面的控件大小没跟着变。有没有重新渲染的方法、就和开始创建一个spreadjs控件设置宽高、然后加载出来效果~
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2015-1-22 18:14:00
地板
回复 3楼wby1990的帖子

你可以使用refersh方法刷新。
代码参考:
  1. $(&quot;#ss&quot;).width(100);

  2. $(&quot;#ss&quot;).height(100);

  3. $(&quot;#ss&quot;).wijspread(&quot;spread&quot;).refresh();
复制代码

评分

参与人数 1满意度 +5 收起 理由
wby1990 + 5 ths

查看全部评分

请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部