From c0728ccd2a9b736d2bef0df8233bc65aae2980f9 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 4 Dec 2007 11:06:56 +0000 Subject: [PATCH] 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 --- src/tests/kits/game/chart/ChartWindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests/kits/game/chart/ChartWindow.cpp b/src/tests/kits/game/chart/ChartWindow.cpp index 6a0ac0686a..6ceddffe68 100644 --- a/src/tests/kits/game/chart/ChartWindow.cpp +++ b/src/tests/kits/game/chart/ChartWindow.cpp @@ -623,7 +623,7 @@ ChartWindow::ChartWindow(BRect frame, const char *name) h += SPACE_LABEL+SPACE_POPUP+2*H_BORDER; /* 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->SetViewColor(background_color); AddChild(fLeftView); @@ -853,11 +853,11 @@ ChartWindow::ChartWindow(BRect frame, const char *name) radio->ResizeToPreferred(); 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()); - /* 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->SetViewColor(0, 0, 0); AddChild(fChartView);