fix regression reported in #4826:

* SetTextRect for non-wrapped textviews needs to update the insets,
  as otherwise several misalignments occur within several apps - renaming
  in Tracker was effected the worst, though

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33717 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe
2009-10-21 20:39:26 +00:00
parent 63b04e111b
commit ec39794897
+6 -2
View File
@@ -2170,8 +2170,12 @@ BTextView::SetTextRect(BRect rect)
if (rect == fTextRect)
return;
if (fWrap)
fLayoutData->UpdateInsets(Bounds().OffsetToCopy(B_ORIGIN), rect);
if (!fWrap) {
rect.right = Bounds().right - fLayoutData->rightInset;
rect.bottom = Bounds().bottom - fLayoutData->bottomInset;
}
fLayoutData->UpdateInsets(Bounds().OffsetToCopy(B_ORIGIN), rect);
_ResetTextRect();
}