aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views/TimelineView.xaml.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-07-19 14:32:56 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-07-19 14:32:56 +0300
commit24a77fd5e03c81c6b0e901da02bce4bdccd4c71c (patch)
tree3c91c5ab36a01608a8b21862ed8bc80eb7b9e8ee /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views/TimelineView.xaml.cs
parentb8cae8fcfe37cee8df17d0e8ccfbf2b3ac8c2152 (diff)
downloadTango-24a77fd5e03c81c6b0e901da02bce4bdccd4c71c.tar.gz
Tango-24a77fd5e03c81c6b0e901da02bce4bdccd4c71c.zip
Fixed a bug with logging module display timeline..
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views/TimelineView.xaml.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views/TimelineView.xaml.cs11
1 files changed, 11 insertions, 0 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 e1c09e49f..8004ef154 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
@@ -40,5 +40,16 @@ namespace Tango.MachineStudio.Logging.Views
_vm.TimelineScaleFactor -= 0.5;
}
}
+
+ private void ItemsControl_SizeChanged(object sender, SizeChangedEventArgs e)
+ {
+ TimelineEventGroup group = (sender as FrameworkElement).DataContext as TimelineEventGroup;
+ group.Height = e.NewSize.Height;
+ }
+
+ private void scrollViewer_ScrollChanged(object sender, ScrollChangedEventArgs e)
+ {
+ scroll_channels.ScrollToVerticalOffset(e.VerticalOffset);
+ }
}
}