[longomatch] Set the widget height counting all the timelines



commit d1152f4fd8ff4e4097ce0008e30f20f67f0ad172
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Oct 16 13:17:34 2014 +0200

    Set the widget height counting all the timelines

 LongoMatch.Drawing/Widgets/PlaysTimeline.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Drawing/Widgets/PlaysTimeline.cs b/LongoMatch.Drawing/Widgets/PlaysTimeline.cs
index 9a308d3..4336b5e 100644
--- a/LongoMatch.Drawing/Widgets/PlaysTimeline.cs
+++ b/LongoMatch.Drawing/Widgets/PlaysTimeline.cs
@@ -68,11 +68,11 @@ namespace LongoMatch.Drawing.Widgets
                        ClearObjects ();
                        eventsTimelines.Clear ();
                        duration = project.Description.FileSet.Duration;
-                       height = project.EventTypes.Count * StyleConf.TimelineCategoryHeight;
-                       widget.Height = height;
                        playsFilter = filter;
                        FillCanvas ();
                        filter.FilterUpdated += UpdateVisibleCategories;
+                       height = Objects.Count * StyleConf.TimelineCategoryHeight;
+                       widget.Height = height;
                }
 
                public Time CurrentTime {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]