When changing the text rect, simply invalidate the view. Otherwise it leaves

dirt in various cases.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29760 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2009-03-28 19:34:40 +00:00
parent 0834dd807f
commit 339dcf9c81
1 changed files with 2 additions and 0 deletions

View File

@ -2155,6 +2155,8 @@ BTextView::SetTextRect(BRect rect)
if (!needsRefresh)
rect.bottom = fTextRect.bottom;
Invalidate();
fTextRect = rect;
fMinTextRectWidth = fTextRect.Width();
// used in auto-resizing mode to keep the text rect from