Fix issue with sizing of metadata editor

This commit is contained in:
Don Jayamanne 2024-08-09 08:12:11 +10:00
parent 7e87eda1b4
commit 9f18d30399
No known key found for this signature in database
GPG key ID: 6E3F5E00E1354B5F

View file

@ -1794,7 +1794,10 @@ export class ModifiedElement extends AbstractElementRenderer {
if (state.metadataHeight || state.outerWidth) {
if (this._metadataEditorContainer) {
this._metadataEditorContainer.style.height = `${this.cell.layoutInfo.metadataHeight}px`;
this._metadataEditor?.layout();
this._metadataEditor?.layout({
width: this._editor!.getViewWidth(),
height: this.cell.layoutInfo.metadataHeight
});
}
}