[apps] In curve view, avoid to reload the whole view when reloading

cursor

Change-Id: Ie8c0e100159201cc6b11122eeb567c68092a7b06
This commit is contained in:
Émilie Feral
2017-01-12 17:53:01 +01:00
parent 5b5dea0243
commit c19ecaeebe
11 changed files with 33 additions and 23 deletions

View File

@@ -20,6 +20,7 @@ int BannerView::numberOfSubviews() const {
}
void BannerView::layoutSubviews() {
markRectAsDirty(bounds());
/* We iterate on subviews, adding their width until we exceed the view bound.
* The last subview that exceeds the bound is recorded as the first subview of
* the next line. For the current line, we scan again the subviews and frame