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
This commit is contained in:
parent
e1d08bc65b
commit
437fc0be3f
@ -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<BTextControl*>(Parent())) {
|
||||
BRect frame = parent->Bounds();
|
||||
frame.left = parent->Divider();
|
||||
frame.InsetBy(-1.0, -1.0);
|
||||
parent->Invalidate(frame);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user