[haiku-commits] haiku: hrev44390 - src/kits/tracker

  • From: stpere@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 23 Jul 2012 23:10:25 +0200 (CEST)

hrev44390 adds 1 changeset to branch 'master'
old head: 50d739dee5fe3c635a052dfd435bcf6557f11639
new head: c082e8f2e24d1855ef255a5292b259acbc5ba7d9

----------------------------------------------------------------------------

c082e8f: Tracker: Variation between Saved and Restored widths
  
  When restored, an overlap was wrongly detected in offsets for
  failure to take into account the width of the border line.
  
  This was causing the horizontal scrollbar to show unnecessarily.

                                [ Philippe Saint-Pierre <stpere@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev44390
Commit:      c082e8f2e24d1855ef255a5292b259acbc5ba7d9
URL:         http://cgit.haiku-os.org/haiku/commit/?id=c082e8f
Author:      Philippe Saint-Pierre <stpere@xxxxxxxxx>
Date:        Mon Jul 23 21:05:57 2012 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 4 deletions(-)
src/kits/tracker/PoseView.cpp |    6 ++----

----------------------------------------------------------------------------

diff --git a/src/kits/tracker/PoseView.cpp b/src/kits/tracker/PoseView.cpp
index fba21fe..3e5eded 100644
--- a/src/kits/tracker/PoseView.cpp
+++ b/src/kits/tracker/PoseView.cpp
@@ -117,6 +117,7 @@ const int32 kMaxAddPosesChunk = 50;
 const uint32 kMsgMouseDragged = 'Mdrg';
 const uint32 kMsgMouseLongDown = 'Mold';
 
+const int32 kRoomForLine = 2;
 
 namespace BPrivate {
 extern bool delete_point(void *);
@@ -478,7 +479,7 @@ BPoseView::AddColumnList(BObjectList<BColumn> *list)
                        column->SetOffset(nextLeftEdge);
                }
 
-               nextLeftEdge = column->Offset() + column->Width()
+               nextLeftEdge = column->Offset() + column->Width() - 
kRoomForLine / 2.0f
                        + kTitleColumnExtraMargin;
                fColumnList->AddItem(column);
 
@@ -8314,9 +8315,6 @@ BPoseView::RecalcExtent()
 }
 
 
-const int32 kRoomForLine = 2;
-
-
 BRect
 BPoseView::Extent() const
 {


Other related posts: