From 0f5f1701c940abbda139a2056a71f2bf7c56d478 Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Thu, 24 Feb 2011 11:19:10 +0000 Subject: [PATCH] Fixed previously hardcoded strip width computation. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40660 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/people/PersonView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/people/PersonView.cpp b/src/apps/people/PersonView.cpp index 05e8f63577..410e58a8b8 100644 --- a/src/apps/people/PersonView.cpp +++ b/src/apps/people/PersonView.cpp @@ -172,8 +172,8 @@ PersonView::Draw(BRect updateRect) // Draw a alert/get info-like strip BRect stripeRect = Bounds(); - float pictureWidth = /*fPictureView->Bounds().Width() */ 96; - stripeRect.right = 10 + pictureWidth / 2; + stripeRect.right = GridLayout()->HorizontalSpacing() + + fPictureView->Bounds().Width() / 2; SetHighColor(tint_color(ViewColor(), B_DARKEN_1_TINT)); FillRect(stripeRect); }