[banshee] [ListView] Calculate virtual size before updating adjustments
- From: Alexander Kojevnikov <alexk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [ListView] Calculate virtual size before updating adjustments
- Date: Sat, 13 Mar 2010 03:52:03 +0000 (UTC)
commit 5e50220d878e43e2fb8f416e15bfe9900577d1a2
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Sat Mar 13 14:50:09 2010 +1100
[ListView] Calculate virtual size before updating adjustments
Fixes bgo#612594
.../Hyena.Data.Gui/ListView/ListView_Windowing.cs | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Windowing.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Windowing.cs
index 8a6a5a1..898e73f 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Windowing.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Windowing.cs
@@ -163,6 +163,10 @@ namespace Hyena.Data.Gui
RecalculateColumnSizes ();
RegenerateColumnCache ();
+ if (ViewLayout != null) {
+ ViewLayout.Allocate ((Hyena.Gui.Canvas.Rect)list_rendering_alloc);
+ }
+
if (vadjustment != null) {
hadjustment.PageSize = header_interaction_alloc.Width;
hadjustment.PageIncrement = header_interaction_alloc.Width;
@@ -178,10 +182,6 @@ namespace Hyena.Data.Gui
OnInvalidateMeasure ();
InvalidateList ();
-
- if (ViewLayout != null) {
- ViewLayout.Allocate ((Hyena.Gui.Canvas.Rect)list_rendering_alloc);
- }
}
protected int ItemsInView {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]