From 80cfc30c48bb264757b2064322dee516ec1d24f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sun, 19 Feb 2006 19:31:39 +0000 Subject: [PATCH] small fixes git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16472 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/soundrecorder/RecorderWindow.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/apps/soundrecorder/RecorderWindow.cpp b/src/apps/soundrecorder/RecorderWindow.cpp index d1746d8cc2..ebdcab692e 100644 --- a/src/apps/soundrecorder/RecorderWindow.cpp +++ b/src/apps/soundrecorder/RecorderWindow.cpp @@ -446,16 +446,17 @@ RecorderWindow::InitWindow() r.InsetBy(10,10); r.top = r.bottom - 18; fInputField = new BMenuField(r, "Input", "Input:", popup); - fInputField->SetDivider(50); + fInputField->SetDivider(fInputField->StringWidth("Input:") + 4.0f); fBottomBox->AddChild(fInputField); // Text field for entering length to record (in seconds) - r.OffsetBy(r.Width()+20, 1); - r.right -= 70; + r.OffsetBy(0, 1); + r.left = r.right + 10; + r.right = frame.right - (frame.right - frame.left) / 4; msg = new BMessage(LENGTH_CHANGED); fLengthControl = new BTextControl(r, "Length", "Length:", "8", msg); fLengthControl->SetDivider(fLengthControl->StringWidth("Length:") + 4.0f); - fLengthControl->SetAlignment(B_ALIGN_CENTER, B_ALIGN_RIGHT); + fLengthControl->SetAlignment(B_ALIGN_RIGHT, B_ALIGN_RIGHT); fBottomBox->AddChild(fLengthControl); r.left += r.Width()+5;