Skip to content

Commit

Permalink
fix: set defaultTrMinHeight option invalid #168
Browse files Browse the repository at this point in the history
  • Loading branch information
Hufe921 committed Apr 2, 2023
1 parent 868aeb0 commit 045e2ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/editor/utils/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export function formatElementList(elementList: IElement[], options: IFormatEleme
if (!tr.minHeight || tr.minHeight < editorOptions.defaultTrMinHeight) {
tr.minHeight = editorOptions.defaultTrMinHeight
}
if (tr.height < tr.minHeight) {
tr.height = tr.minHeight
}
for (let d = 0; d < tr.tdList.length; d++) {
const td = tr.tdList[d]
const tdId = getUUID()
Expand Down

0 comments on commit 045e2ff

Please sign in to comment.