[banshee: 38/61] [Hyena.Gui] Fix calculation of max width
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee: 38/61] [Hyena.Gui] Fix calculation of max width
- Date: Tue, 3 Nov 2009 06:31:02 +0000 (UTC)
commit 112bdc26bacb810d7a5376712d609f15fd5c53ed
Author: Gabriel Burt <gabriel burt gmail com>
Date: Tue Oct 13 14:50:32 2009 -0700
[Hyena.Gui] Fix calculation of max width
.../Hyena.Data.Gui/ListView/ListView_Header.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
index e47c37d..b3c41f5 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
@@ -217,7 +217,7 @@ namespace Hyena.Data.Gui
double tmp_max = 0.0;
foreach (var col in column_cache) {
tmp_width += col.ElasticWidth;
- tmp_max += col.MaxWidth;
+ tmp_max += col.MaxWidth == Int32.MaxValue ? col.MinWidth : col.MaxWidth;
}
list_width = tmp_width;
max_width = tmp_max;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]