Skip to content

Commit

Permalink
fix: 解决 cr 发现的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
boyongjiong committed Jul 11, 2024
1 parent 8064fbd commit 716dce1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/model/node/DiamondNodeModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class DiamondNodeModel extends BaseNodeModel {
super(data, graphModel)
this.properties = data.properties || {}

// this.setAttributes()
this.setAttributes()
}

setAttributes() {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/util/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ export const getHtmlTextHeight = ({
dom.appendChild(rowDom)
})
} else {
dom.textContent = `${rows[0]}`
dom.textContent = rows[0]
}
document.body.appendChild(dom)
const height = dom.clientHeight
Expand Down

0 comments on commit 716dce1

Please sign in to comment.