From b2b39e3ddead98e2990bcb57d26af94e2e3980b8 Mon Sep 17 00:00:00 2001 From: Nuno Cancelo Date: Mon, 13 Oct 2014 11:38:55 +0100 Subject: [PATCH] Vertical Scrool bug fixed. --- src/SilverlightApp/Views/Participantes.xaml | 4 ++-- src/SilverlightApp/Views/Participantes.xaml.cs | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/SilverlightApp/Views/Participantes.xaml b/src/SilverlightApp/Views/Participantes.xaml index 5d37b42..fb973ab 100644 --- a/src/SilverlightApp/Views/Participantes.xaml +++ b/src/SilverlightApp/Views/Participantes.xaml @@ -31,7 +31,7 @@ Grid.RowSpan="2" Margin="20,5" FontSize="12" - + SizeChanged="ParticipantsList_SizeChanged" > @@ -49,7 +49,7 @@ - + diff --git a/src/SilverlightApp/Views/Participantes.xaml.cs b/src/SilverlightApp/Views/Participantes.xaml.cs index 97cee9f..019c912 100644 --- a/src/SilverlightApp/Views/Participantes.xaml.cs +++ b/src/SilverlightApp/Views/Participantes.xaml.cs @@ -34,8 +34,9 @@ private void ParticipantsList_SizeChanged(object sender, SizeChangedEventArgs e) var wrapPanel = ParticipantsList.GetItemsHost() as WrapPanel; if (wrapPanel == null) return; - wrapPanel.MaxHeight = ((FrameworkElement)sender).ActualHeight; - wrapPanel.MaxWidth = ((FrameworkElement)sender).ActualWidth; + wrapPanel.MaxHeight = ((FrameworkElement)sender).ActualHeight - 20; + + //wrapPanel.MaxWidth = ((FrameworkElement)sender).ActualWidth; } private void RemoveParticipant_Click(object sender, RoutedEventArgs e)