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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user