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:
Stefano Ceccherini 2007-12-04 11:06:56 +00:00
parent ee3f1027be
commit c0728ccd2a

View File

@ -623,7 +623,7 @@ ChartWindow::ChartWindow(BRect frame, const char *name)
h += SPACE_LABEL+SPACE_POPUP+2*H_BORDER; h += SPACE_LABEL+SPACE_POPUP+2*H_BORDER;
/* left column gray background */ /* left column gray background */
r.Set(0.0, TOP_LEFT_LIMIT, LEFT_WIDTH-1, frame.bottom); r.Set(0.0, TOP_LEFT_LIMIT, LEFT_WIDTH - 1, frame.bottom);
fLeftView = new BView(r, "top view", B_FOLLOW_LEFT | B_FOLLOW_TOP_BOTTOM, B_WILL_DRAW); fLeftView = new BView(r, "top view", B_FOLLOW_LEFT | B_FOLLOW_TOP_BOTTOM, B_WILL_DRAW);
fLeftView->SetViewColor(background_color); fLeftView->SetViewColor(background_color);
AddChild(fLeftView); AddChild(fLeftView);
@ -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);