[longomatch/newui: 110/157] Set timeline height correctly
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/newui: 110/157] Set timeline height correctly
- Date: Mon, 1 Sep 2014 09:50:37 +0000 (UTC)
commit ca94c914e10fa162286c437a7486163b25a631e9
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Aug 27 14:13:21 2014 +0200
Set timeline height correctly
LongoMatch.Drawing/Widgets/PlaysTimeline.cs | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch.Drawing/Widgets/PlaysTimeline.cs b/LongoMatch.Drawing/Widgets/PlaysTimeline.cs
index c754ddd..f62b2b8 100644
--- a/LongoMatch.Drawing/Widgets/PlaysTimeline.cs
+++ b/LongoMatch.Drawing/Widgets/PlaysTimeline.cs
@@ -48,17 +48,20 @@ namespace LongoMatch.Drawing.Widgets
public void LoadProject (Project project, PlaysFilter filter)
{
+ int height;
+
this.project = project;
ClearObjects ();
categories.Clear ();
duration = project.Description.File.Duration;
- widget.Height = project.Categories.CategoriesList.Count *
StyleConf.TimelineCategoryHeight;
+ height = project.Categories.CategoriesList.Count * StyleConf.TimelineCategoryHeight;
if (project.Categories.Scores.Count > 0) {
- widget.Height += StyleConf.TimelineCategoryHeight;
+ height += StyleConf.TimelineCategoryHeight;
}
if (project.Categories.PenaltyCards.Count > 0) {
- widget.Height += StyleConf.TimelineCategoryHeight;
+ height += StyleConf.TimelineCategoryHeight;
}
+ widget.Height = height;
playsFilter = filter;
FillCanvas ();
filter.FilterUpdated += UpdateVisibleCategories;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]