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.
This commit is contained in:
Philippe Saint-Pierre 2012-07-23 17:05:57 -04:00
parent 50d739dee5
commit c082e8f2e2
1 changed files with 2 additions and 4 deletions

View File

@ -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
{