Browse Source

格式刷字体变化后重新计算行高

master
yangyong8650 4 years ago
parent
commit
588e6102b2
  1. 6
      src/controllers/selection.js

6
src/controllers/selection.js

@ -1857,8 +1857,14 @@ const selection = {
jfrefreshgrid(d, Store.luckysheet_select_save, allParam); jfrefreshgrid(d, Store.luckysheet_select_save, allParam);
} }
else{ else{
// 选区格式刷存在超出边界的情况
if(maxh >= d.length){
maxh = d.length - 1;
}
cfg = rowlenByRange(d, minh, maxh, cfg); //更新行高
let allParam = { let allParam = {
"cfg": cfg, "cfg": cfg,
"RowlChange": true,
"cdformat": cdformat, "cdformat": cdformat,
"dataVerification": dataVerification "dataVerification": dataVerification
} }

Loading…
Cancel
Save