Remove B_NAVIGABLE flag from main view after setup the child text view that use the flags from the main view. Fix #6431.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38879 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
550bad1124
commit
5096093590
@ -1073,10 +1073,6 @@ BTextControl::_InitData(const char* label, const BMessage* archive)
|
||||
if (label)
|
||||
fDivider = floorf(bounds.Width() / 2.0f);
|
||||
|
||||
uint32 navigableFlags = Flags() & B_NAVIGABLE;
|
||||
if (navigableFlags != 0)
|
||||
BView::SetFlags(Flags() & ~B_NAVIGABLE);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1119,6 +1115,10 @@ BTextControl::_InitText(const char* initialText, const BMessage* archive)
|
||||
|
||||
SetAlignment((alignment)labelAlignment, (alignment)textAlignment);
|
||||
}
|
||||
|
||||
uint32 navigableFlags = Flags() & B_NAVIGABLE;
|
||||
if (navigableFlags != 0)
|
||||
BView::SetFlags(Flags() & ~B_NAVIGABLE);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user