[hyena] ListView: Fix a cell rendering glitch (bgo#636057)



commit e292f48aeeb017fdadf7e1b0cc4f79f574014042
Author: Mackenan Grassi <mackenan gmail com>
Date:   Thu Apr 28 19:03:12 2011 -0700

    ListView: Fix a cell rendering glitch (bgo#636057)
    
    ColumnCell x-coordinate was being incorrectly calculated in order to call
    QueueDirtyRegion in response to mouse events. The original calculation used
    ListView's Allocation, which doesn't account for the offset of
    TotalBorderWidth. This glitch was mostly noticeable with ColumnCellCheckBox
    items. Allocation has been change to list_rendering_alloc to correct the
    calculation.
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 .../ListView/ListView_Interaction.cs               |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
index 31946eb..38f2736 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
@@ -517,7 +517,7 @@ namespace Hyena.Data.Gui
 
             var view_point = GetViewPointForModelRow (row_index);
             icell_area.Y = (int)view_point.Y + list_interaction_alloc.Y + Allocation.Y;
-            icell_area.X = cached_column.X1 + Allocation.X;
+            icell_area.X = cached_column.X1 + list_rendering_alloc.X;
             icell_area.Width = cached_column.Width;
             icell_area.Height = ChildSize.Height;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]