BTextControl was filling some part of the inner BTextView with the view color, thus hidding the text. This fixes bug 161
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16485 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7a0de24359
commit
111b4fbcaf
@ -278,6 +278,7 @@ BTextControl::Draw(BRect updateRect)
|
||||
BRegion updateRegion(updateRect);
|
||||
// why is there no IntersectWith(BRect &) version?
|
||||
region.IntersectWith(&updateRegion);
|
||||
region.Exclude(fText->Frame());
|
||||
FillRegion(®ion);
|
||||
|
||||
if (Label()) {
|
||||
@ -657,7 +658,7 @@ BTextControl::_InitData(const char* label, const char* initialText,
|
||||
// we are stroking the frame around the text view, which
|
||||
// is 2 pixels wide
|
||||
frame.InsetBy(4.0, 3.0);
|
||||
BRect textRect(frame.OffsetToCopy(0.0f, 0.0f));
|
||||
BRect textRect(frame.OffsetToCopy(B_ORIGIN));
|
||||
|
||||
fText = new _BTextInput_(frame, textRect,
|
||||
B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP,
|
||||
|
Loading…
x
Reference in New Issue
Block a user