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:
@@ -2155,6 +2155,8 @@ BTextView::SetTextRect(BRect rect)
|
|||||||
if (!needsRefresh)
|
if (!needsRefresh)
|
||||||
rect.bottom = fTextRect.bottom;
|
rect.bottom = fTextRect.bottom;
|
||||||
|
|
||||||
|
Invalidate();
|
||||||
|
|
||||||
fTextRect = rect;
|
fTextRect = rect;
|
||||||
fMinTextRectWidth = fTextRect.Width();
|
fMinTextRectWidth = fTextRect.Width();
|
||||||
// used in auto-resizing mode to keep the text rect from
|
// used in auto-resizing mode to keep the text rect from
|
||||||
|
|||||||
Reference in New Issue
Block a user