找回密码
 立即注册

QQ登录

只需一步,快速开始

RainYan

初级会员

42

主题

138

帖子

394

积分

初级会员

积分
394
RainYan
初级会员   /  发表于:2024-5-14 15:20  /   查看:801  /  回复:2
20金币
本帖最后由 Richard.Huang 于 2024-5-16 14:29 编辑

产品:SpreadJS
版本:V17.0.5

点击出现的这个面板 把原本的表格项覆盖了 怎么能设置这个面板再向下移动一个表格的高度呢 我设置没生效

企业微信截图_17155836281272.png766397704.png 企业微信截图_17155836094617.png784978332.png

最佳答案

查看完整内容

您好,createEditorElement方法中创建的div外面会被SpreadJS再包一层容器,因此,您需要去修改这个外层容器的css样式,这样才能实现一个内容框下移的效果,具体如下: FullNameCellType.prototype.updateEditor = function (editorContext, cellStyle, cellRect) { if (editorContext) { editorContext.style.width = cellRect.width; editorContext.style.height = 100; editorContext.parentNo ...

2 个回复

倒序浏览
最佳答案
最佳答案
Richard.HuangSpreadJS 开发认证
超级版主   /  发表于:2024-5-14 15:20:22
来自 2#
您好,createEditorElement方法中创建的div外面会被SpreadJS再包一层容器,因此,您需要去修改这个外层容器的css样式,这样才能实现一个内容框下移的效果,具体如下:
FullNameCellType.prototype.updateEditor = function (editorContext, cellStyle, cellRect) {
    if (editorContext) {
        editorContext.style.width = cellRect.width;
        editorContext.style.height = 100;
        editorContext.parentNode.parentNode.style.top = parseInt(editorContext.parentNode.parentNode.style.top) + cellRect.height + "px"
        return { height: 100 };
    }
};
回复 使用道具 举报
Richard.HuangSpreadJS 开发认证
超级版主   /  发表于:2024-5-22 14:24:49
3#
您好,请问楼主的问题是否得到解决,如果仍然存在问题,欢迎继续跟帖询问
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部