HaikuDepot: Fix invalidating view contents...
... when InvalidateLayout() does not result in a change of the layout.
This commit is contained in:
@@ -107,6 +107,7 @@ TextDocumentView::SetTextDocument(const TextDocumentRef& document)
|
||||
fTextDocument = document;
|
||||
fTextDocumentLayout.SetTextDocument(fTextDocument);
|
||||
InvalidateLayout();
|
||||
Invalidate();
|
||||
_UpdateScrollBars();
|
||||
}
|
||||
|
||||
@@ -139,6 +140,7 @@ TextDocumentView::SetInsets(float left, float top, float right, float bottom)
|
||||
fInsetBottom = bottom;
|
||||
|
||||
InvalidateLayout();
|
||||
Invalidate();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -111,6 +111,7 @@ TextView::SetText(const BString& text)
|
||||
fTextLayout.SetParagraph(fText);
|
||||
|
||||
InvalidateLayout();
|
||||
Invalidate();
|
||||
}
|
||||
|
||||
|
||||
@@ -121,5 +122,6 @@ TextView::SetParagraphStyle(const ::ParagraphStyle& style)
|
||||
fTextLayout.SetParagraph(fText);
|
||||
|
||||
InvalidateLayout();
|
||||
Invalidate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user