本帖最后由 Wilson.Zhang 于 2025-1-13 09:50 编辑
您好!您尝试下在ColumnWidthChanged事件的处理函数中加上setTimeout,我测试发现稍微延时下可以获取到列宽修改后的实际坐标,代码如下所示:
- sheet.bind(GC.Spread.Sheets.Events.ColumnWidthChanged, function(e, args) {
- setTimeout(function() {
- console.log('cellRect: ', sheet.getCellRect(3, 3));
- }, 1000);
- });
复制代码
|