HaikuDepot: Fix invalidating view contents...

... when InvalidateLayout() does not result in a change of the layout.
This commit is contained in:
Stephan Aßmus
2013-11-24 21:18:13 +01:00
parent b7cb4587b0
commit 31ecb89c7f
2 changed files with 4 additions and 0 deletions
@@ -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();
}