aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2018-07-25 15:44:00 +0300
committerAvi Levkovich <avi@twine-s.com>2018-07-25 15:44:00 +0300
commit76fb3f86bfaceb75220752cd5ef792eb3be464cc (patch)
tree76755bbae2bbe4ece5f474a11424a918dbf33b5b /Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs
parentcaf4be8968eed6738fdaa2486fa08ba601c45be4 (diff)
parentd5a855a3980a835460befab0acc36caa7f0230b7 (diff)
downloadTango-76fb3f86bfaceb75220752cd5ef792eb3be464cc.tar.gz
Tango-76fb3f86bfaceb75220752cd5ef792eb3be464cc.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs')
-rw-r--r--Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs b/Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs
index 2f911a6c4..7cd7f74f1 100644
--- a/Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs
+++ b/Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs
@@ -132,6 +132,15 @@ namespace RealTimeGraphEx.FastGraphs
{
var pointsCollection = _graphController.GetAndClearAllPoints();
+ if (_useAutoRange && pointsCollection.Count > 0)
+ {
+ Dispatcher.Invoke(() =>
+ {
+ Maximum = pointsCollection.SelectMany(x => x).Concat(_graphPolygons.SelectMany(x => x.GetPoints())).Max();
+ Minimum = pointsCollection.SelectMany(x => x).Concat(_graphPolygons.SelectMany(x => x.GetPoints())).Min();
+ });
+ }
+
if (!_isPaused)
{