fix: correcly call 'isEdge' in CellEditorHandler (#286)

`isEdge` is not a model function but rather a function of the cell.
development
TravisAdsitt 2023-12-18 08:05:06 -07:00 committed by GitHub
parent a9c1ab6000
commit 164d10a437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -798,8 +798,7 @@ class CellEditorHandler implements GraphPlugin {
// Workaround for initial offsetHeight not ready for heading in markup
if (
this.autoSize &&
// @ts-ignore
(this.graph.model.isEdge(state.cell) || state.style.overflow !== 'fill')
(state.cell.isEdge() || state.style.overflow !== 'fill')
) {
window.setTimeout(() => {
this.resize();