fix: correcly call 'isEdge' in CellEditorHandler (#286)
`isEdge` is not a model function but rather a function of the cell.development
parent
a9c1ab6000
commit
164d10a437
|
@ -798,8 +798,7 @@ class CellEditorHandler implements GraphPlugin {
|
||||||
// Workaround for initial offsetHeight not ready for heading in markup
|
// Workaround for initial offsetHeight not ready for heading in markup
|
||||||
if (
|
if (
|
||||||
this.autoSize &&
|
this.autoSize &&
|
||||||
// @ts-ignore
|
(state.cell.isEdge() || state.style.overflow !== 'fill')
|
||||||
(this.graph.model.isEdge(state.cell) || state.style.overflow !== 'fill')
|
|
||||||
) {
|
) {
|
||||||
window.setTimeout(() => {
|
window.setTimeout(() => {
|
||||||
this.resize();
|
this.resize();
|
||||||
|
|
Loading…
Reference in New Issue