Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/editor/core/draw/Draw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1704,8 +1704,8 @@ export class Draw {
curRow.width += metrics.width
// 减小块元素前第一行空行行高
if (i === 0 && getIsBlockElement(elementList[1])) {
curRow.height = defaultBasicRowMarginHeight
curRow.ascent = defaultBasicRowMarginHeight
curRow.height = rowMargin
curRow.ascent = rowMargin
} else if (curRow.height < height) {
curRow.height = height
curRow.ascent = ascent
Expand Down