Skip to content

Commit

Permalink
feat: remove row spacing from continuous tables #842
Browse files Browse the repository at this point in the history
  • Loading branch information
Hufe921 committed Oct 14, 2024
1 parent 3f265c8 commit a4d8633
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/editor/core/draw/Draw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1436,6 +1436,10 @@ export class Draw {
metrics.height = elementHeight
metrics.boundingBoxDescent = elementHeight
metrics.boundingBoxAscent = -rowMargin
// 后一个元素也是表格则移除行间距
if (elementList[i + 1]?.type === ElementType.TABLE) {
metrics.boundingBoxAscent -= rowMargin
}
// 表格分页处理(拆分表格)
if (isPagingMode) {
const height = this.getHeight()
Expand Down

0 comments on commit a4d8633

Please sign in to comment.