From 437fc0be3f704636f6e9624a19860cfce1855ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 15 Nov 2005 01:32:23 +0000 Subject: [PATCH] invalidate the parent where the blue focus indication actually belongs, completes Axels recent changes git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14931 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/TextInput.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kits/interface/TextInput.cpp b/src/kits/interface/TextInput.cpp index 867355113b..105b40e2cc 100644 --- a/src/kits/interface/TextInput.cpp +++ b/src/kits/interface/TextInput.cpp @@ -158,8 +158,9 @@ _BTextInput_::MakeFocus(bool state) // TODO: why do we have to invalidate here? // I'm leaving this in, but it looks suspicious... :-) Invalidate(Bounds()); - if (BView* parent = Parent()) { - BRect frame = Frame(); + if (BTextControl* parent = dynamic_cast(Parent())) { + BRect frame = parent->Bounds(); + frame.left = parent->Divider(); frame.InsetBy(-1.0, -1.0); parent->Invalidate(frame); }