From f8e65da910599da98feef09c872b3b1be3972aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 10 Feb 2004 15:39:54 +0000 Subject: [PATCH] Fixed the slider resizing mode and drawing. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6554 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/diskprobe/ProbeView.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/diskprobe/ProbeView.cpp b/src/apps/diskprobe/ProbeView.cpp index 5b6e177f15..6e26bcbe83 100644 --- a/src/apps/diskprobe/ProbeView.cpp +++ b/src/apps/diskprobe/ProbeView.cpp @@ -146,7 +146,8 @@ IconView::UpdateIcon() Slider::Slider(BRect rect, const char *name) - : BSlider(rect, name, NULL, NULL, 0, 0x10000000, B_HORIZONTAL, B_TRIANGLE_THUMB) + : BSlider(rect, name, NULL, NULL, 0, 0x10000000, B_HORIZONTAL, + B_TRIANGLE_THUMB, B_FOLLOW_LEFT_RIGHT) { } @@ -170,7 +171,7 @@ Slider::DrawBar() // ToDo: the color should probably be retrieved from one of the ui colors view->FillRect(frame); - frame.left = frame.right; + frame.left = frame.right + 1; frame.right = barFrame.right - 1; view->SetHighColor(tint_color(ViewColor(), B_DARKEN_1_TINT)); view->FillRect(frame);