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;
|
fTextDocument = document;
|
||||||
fTextDocumentLayout.SetTextDocument(fTextDocument);
|
fTextDocumentLayout.SetTextDocument(fTextDocument);
|
||||||
InvalidateLayout();
|
InvalidateLayout();
|
||||||
|
Invalidate();
|
||||||
_UpdateScrollBars();
|
_UpdateScrollBars();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -139,6 +140,7 @@ TextDocumentView::SetInsets(float left, float top, float right, float bottom)
|
|||||||
fInsetBottom = bottom;
|
fInsetBottom = bottom;
|
||||||
|
|
||||||
InvalidateLayout();
|
InvalidateLayout();
|
||||||
|
Invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ TextView::SetText(const BString& text)
|
|||||||
fTextLayout.SetParagraph(fText);
|
fTextLayout.SetParagraph(fText);
|
||||||
|
|
||||||
InvalidateLayout();
|
InvalidateLayout();
|
||||||
|
Invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -121,5 +122,6 @@ TextView::SetParagraphStyle(const ::ParagraphStyle& style)
|
|||||||
fTextLayout.SetParagraph(fText);
|
fTextLayout.SetParagraph(fText);
|
||||||
|
|
||||||
InvalidateLayout();
|
InvalidateLayout();
|
||||||
|
Invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user