Browse files

Fixed changeset graph related problem.

  • Loading branch information...
1 parent f29eb68 commit b60778e0271349d885e046f0a23e210af25740b2 @kaisellgren committed Jul 6, 2012
Showing with 9 additions and 3 deletions.
  1. +1 −1 UserControls/CenterArea.xaml
  2. +8 −1 UserControls/CenterArea.xaml.cs
  3. +0 −1 UserControls/ChangesetHistory.xaml
View
2 UserControls/CenterArea.xaml
@@ -8,7 +8,7 @@
d:DesignHeight="412" d:DesignWidth="859">
<Grid>
<Grid.RowDefinitions>
- <RowDefinition Name="ChangesetHistoryRowDefinition" />
+ <RowDefinition Name="ChangesetHistoryRowDefinition" Height="264" />
<RowDefinition Height="6" />
<RowDefinition />
</Grid.RowDefinitions>
View
9 UserControls/CenterArea.xaml.cs
@@ -1,6 +1,8 @@
-using System.Windows;
+using System;
+using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
+using GG.Libraries;
namespace GG.UserControls
{
@@ -16,6 +18,11 @@ public CenterArea()
private void GridSplitterDragCompleted(object sender, DragCompletedEventArgs e)
{
+ MakeGridSplitterToSnapToGrid();
+ }
+
+ private void MakeGridSplitterToSnapToGrid()
+ {
// We want the grid splitter to snap in grid of 24 units.
var excess = (int) ChangesetHistoryRowDefinition.Height.Value % 24;
View
1 UserControls/ChangesetHistory.xaml
@@ -14,7 +14,6 @@
<userControls:ChangesetHistoryContextMenu x:Key="changesetHistoryContextMenu" />
<converters:IsHeadToFontWeightConverter x:Key="isHeadToFontWeightConverter" />
<converters:IsHeadToTextDecorationsConverter x:Key="isHeadToTextDecorationsConverter" />
- <converters:GetDataGridContentHeightConverter x:Key="getDataGridContentHeightConverter" />
</UserControl.Resources>
<Grid x:Name="ChangesetHistoryContainer">

0 comments on commit b60778e

Please sign in to comment.