Fixed bug 516, worked some more on AutoResize() (which is still not correct, but improves the situation, looks like bug 161 wasn't completely fixed yet)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17342 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2006-05-05 18:08:35 +00:00
parent db40254ac8
commit 71c3e4ad7d
2 changed files with 26 additions and 31 deletions
-11
View File
@@ -272,17 +272,6 @@ BTextControl::Draw(BRect updateRect)
StrokeLine(BPoint(rect.right, rect.top + 1.0f));
}
// area around text view
SetHighColor(fText->ViewColor());
rect.InsetBy(1, 1);
BRegion region(rect);
BRegion updateRegion(updateRect);
// why is there no IntersectWith(BRect &) version?
region.IntersectWith(&updateRegion);
region.Exclude(fText->Frame());
FillRegion(&region);
// label
if (Label()) {