The placement of the animation view was off by one to the left. This
caused bug #96. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23059 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -853,11 +853,11 @@ ChartWindow::ChartWindow(BRect frame, const char *name)
|
|||||||
radio->ResizeToPreferred();
|
radio->ResizeToPreferred();
|
||||||
fSpecialBox->AddChild(radio);
|
fSpecialBox->AddChild(radio);
|
||||||
|
|
||||||
// Note: direct window mode uses LEFT_WIDTH
|
// Note: direct window mode uses LEFT_WIDTH to calculate
|
||||||
|
// the left border of the animation view, so we use it here too.
|
||||||
//fLeftView->ResizeTo(max_c(boxWidth + 2, fLeftView->Bounds().Width()), fLeftView->Bounds().Height());
|
//fLeftView->ResizeTo(max_c(boxWidth + 2, fLeftView->Bounds().Width()), fLeftView->Bounds().Height());
|
||||||
|
|
||||||
/* animation area */
|
/* animation area */
|
||||||
r.Set(fLeftView->Frame().right, TOP_LEFT_LIMIT, frame.right, frame.bottom);
|
r.Set(LEFT_WIDTH, TOP_LEFT_LIMIT, frame.right, frame.bottom);
|
||||||
fChartView = new ChartView(r);
|
fChartView = new ChartView(r);
|
||||||
fChartView->SetViewColor(0, 0, 0);
|
fChartView->SetViewColor(0, 0, 0);
|
||||||
AddChild(fChartView);
|
AddChild(fChartView);
|
||||||
|
|||||||
Reference in New Issue
Block a user