aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-07-31 10:56:22 +0300
committerShlomo Hecht <shlomo@twine-s.com>2018-07-31 10:56:22 +0300
commit28d5e3b892df893ea3c918392566d1842fd85937 (patch)
tree9b99e2fa17321243cf91407719b291ae729303f5 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views
parenteab3bef002de013b902499341266c79b92349594 (diff)
parentb6b2f9ad4c96deface6763adbb2ac533e9706d1b (diff)
downloadTango-28d5e3b892df893ea3c918392566d1842fd85937.tar.gz
Tango-28d5e3b892df893ea3c918392566d1842fd85937.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views/TimelineView.xaml.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views/TimelineView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views/TimelineView.xaml.cs
index 8004ef154..92d176671 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views/TimelineView.xaml.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views/TimelineView.xaml.cs
@@ -44,7 +44,11 @@ namespace Tango.MachineStudio.Logging.Views
private void ItemsControl_SizeChanged(object sender, SizeChangedEventArgs e)
{
TimelineEventGroup group = (sender as FrameworkElement).DataContext as TimelineEventGroup;
- group.Height = e.NewSize.Height;
+
+ if (group != null)
+ {
+ group.Height = e.NewSize.Height;
+ }
}
private void scrollViewer_ScrollChanged(object sender, ScrollChangedEventArgs e)