aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Saint-Pierre <stpere@gmail.com>2012-07-23 17:05:57 -0400
committerPhilippe Saint-Pierre <stpere@gmail.com>2012-07-23 17:05:57 -0400
commitc082e8f2e24d1855ef255a5292b259acbc5ba7d9 (patch)
treeb10e8fd5c76adaff60d8d2fa4c72cc2d05f4da6f
parent50d739dee5fe3c635a052dfd435bcf6557f11639 (diff)
Tracker: Variation between Saved and Restored widthshrev44390
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.
-rw-r--r--src/kits/tracker/PoseView.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/kits/tracker/PoseView.cpp b/src/kits/tracker/PoseView.cpp
index fba21fe3db..3e5ededf3d 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
{