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:
@@ -278,6 +278,7 @@ BTextControl::Draw(BRect updateRect)
|
|||||||
BRegion updateRegion(updateRect);
|
BRegion updateRegion(updateRect);
|
||||||
// why is there no IntersectWith(BRect &) version?
|
// why is there no IntersectWith(BRect &) version?
|
||||||
region.IntersectWith(&updateRegion);
|
region.IntersectWith(&updateRegion);
|
||||||
|
region.Exclude(fText->Frame());
|
||||||
FillRegion(®ion);
|
FillRegion(®ion);
|
||||||
|
|
||||||
if (Label()) {
|
if (Label()) {
|
||||||
@@ -657,7 +658,7 @@ BTextControl::_InitData(const char* label, const char* initialText,
|
|||||||
// we are stroking the frame around the text view, which
|
// we are stroking the frame around the text view, which
|
||||||
// is 2 pixels wide
|
// is 2 pixels wide
|
||||||
frame.InsetBy(4.0, 3.0);
|
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,
|
fText = new _BTextInput_(frame, textRect,
|
||||||
B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP,
|
B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP,
|
||||||
|
|||||||
Reference in New Issue
Block a user