Redraw the text when MakeResizable is called. Fixes bug 187
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16798 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2383,11 +2383,9 @@ BTextView::MakeResizable(bool resize, BView *resizeView)
|
|||||||
if (fSelStart != fSelEnd && fSelectable)
|
if (fSelStart != fSelEnd && fSelectable)
|
||||||
Highlight(fSelStart, fSelEnd);
|
Highlight(fSelStart, fSelEnd);
|
||||||
|
|
||||||
else if (fCaretVisible) {
|
else if (fCaretVisible)
|
||||||
InvertCaret();
|
InvertCaret();
|
||||||
Refresh(0, fText->Length(), true, false);
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fResizable = false;
|
fResizable = false;
|
||||||
@@ -2396,6 +2394,8 @@ BTextView::MakeResizable(bool resize, BView *resizeView)
|
|||||||
DeleteOffscreen();
|
DeleteOffscreen();
|
||||||
NewOffscreen();
|
NewOffscreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Refresh(0, fText->Length(), true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -3181,7 +3181,7 @@ BTextView::Refresh(int32 fromOffset, int32 toOffset, bool erase, bool scroll)
|
|||||||
if (LineHeight(fromLine) != saveLineHeight ||
|
if (LineHeight(fromLine) != saveLineHeight ||
|
||||||
newHeight < saveHeight || fromLine < saveFromLine || fAlignment != B_ALIGN_LEFT)
|
newHeight < saveHeight || fromLine < saveFromLine || fAlignment != B_ALIGN_LEFT)
|
||||||
drawOffset = (*fLines)[fromLine]->offset;
|
drawOffset = (*fLines)[fromLine]->offset;
|
||||||
|
|
||||||
// TODO: Is it ok here ?
|
// TODO: Is it ok here ?
|
||||||
if (fResizable)
|
if (fResizable)
|
||||||
AutoResize(false);
|
AutoResize(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user