[hyena] Calculate virtual size before updating adjustments



commit 43cf416d6d4819d405d65d6f1e97537ac5a90c02
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Sat Mar 13 14:50:09 2010 +1100

    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/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Windowing.cs b/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Windowing.cs
index 8a6a5a1..898e73f 100644
--- a/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Windowing.cs
+++ b/src/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]