Skip to content

Commit 869404e

Browse files
authored
DYN-8986 Fix graphs opening in a dirty state (#16262)
1 parent 5fee00c commit 869404e

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/DynamoCoreWpf/Views/Core/AnnotationView.xaml.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,10 @@ private void GroupTextBox_OnTextChanged(object sender, TextChangedEventArgs e)
235235

236236
SetTextMaxWidth();
237237
SetTextHeight();
238-
ViewModel.WorkspaceViewModel.HasUnsavedChanges = true;
238+
if (GroupTextBox.ActualHeight > 0 && GroupTextBox.ActualWidth > 0)
239+
{
240+
ViewModel.WorkspaceViewModel.HasUnsavedChanges = true;
241+
}
239242
}
240243

241244

@@ -355,7 +358,10 @@ private void GroupDescriptionTextBox_TextChanged(object sender, TextChangedEvent
355358
if (ViewModel is null || !IsLoaded) return;
356359

357360
SetTextHeight();
358-
ViewModel.WorkspaceViewModel.HasUnsavedChanges = true;
361+
if (GroupDescriptionTextBox.ActualHeight > 0 && GroupDescriptionTextBox.ActualWidth > 0)
362+
{
363+
ViewModel.WorkspaceViewModel.HasUnsavedChanges = true;
364+
}
359365

360366
}
361367

0 commit comments

Comments
 (0)