SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Fix: 86eudzg3x : Note Component - Custom Resize Lost After Edit Operations
samme-abdulb0023a69d6a1
diff --git a/packages/app/src/builder-ui/components/Note.class.ts b/packages/app/src/builder-ui/components/Note.class.tsindex 2274d74e..b4091dde 100644--- a/packages/app/src/builder-ui/components/Note.class.ts+++ b/packages/app/src/builder-ui/components/Note.class.ts@@ -162,33 +162,9 @@ export class Note extends Component {const markdownElement = this.domElement?.querySelector('.note-markdown');if (markdownElement) {markdownElement.remove();- this.autoResizeNote();}}- private autoResizeNote(): void {- const contentWrapper = this.domElement?.querySelector('.note-content-wrapper');- if (!contentWrapper) return;-- setTimeout(() => {- // Get the natural height of the content- const scrollHeight = contentWrapper.scrollHeight;- const titleBarHeight = 40;- const padding = 20;- const minHeight = 80;-- // Calculate new height based on content- const calculatedHeight = scrollHeight + titleBarHeight + padding;- const newHeight = Math.max(calculatedHeight, minHeight);-- // Resize to fit content (both shrink and grow)- const heightPx = newHeight + 'px';- this.domElement.style.height = heightPx;- this.properties.height = heightPx;- this.data._noteHeight = heightPx;- }, 10); // Small delay to ensure DOM is updated- }-private renderMarkdownContent(): void {// Clear existing markdown contentconst existingMarkdown = this.domElement?.querySelector('.note-markdown');@@ -214,7 +190,6 @@ export class Note extends Component {private updateNoteContent(): void {this.domElement.querySelector('.note-text').innerHTML = this.data.description || '';this.renderMarkdownContent();- this.autoResizeNote();}private updateNoteStyles(): void {