mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/stats] Fix drawin and reloading
This commit is contained in:
@@ -48,7 +48,7 @@ void BoxView::reload() {
|
||||
KDCoordinate maxY = boxUpperBoundPixel();
|
||||
KDCoordinate minX = std::round(floatToPixel(Axis::Horizontal, m_store->minValue(m_series)));
|
||||
KDCoordinate maxX = std::round(floatToPixel(Axis::Horizontal, m_store->maxValue(m_series)));
|
||||
KDRect dirtyRect = KDRect(minX, minY, maxX - minX + k_quantileBarWidth, maxY - minY + k_quantileBarWidth);
|
||||
KDRect dirtyRect = KDRect(minX, minY, maxX - minX + k_quantileBarWidth, maxY - minY);
|
||||
markRectAsDirty(dirtyRect);
|
||||
}
|
||||
|
||||
|
||||
@@ -172,6 +172,7 @@ bool HistogramController::moveSelectionHorizontally(int deltaIndex) {
|
||||
if (m_store->scrollToSelectedBarIndex(selectedSeries(), *m_selectedBarIndex)) {
|
||||
multipleDataView()->reload();
|
||||
}
|
||||
reloadBannerView();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -67,9 +67,7 @@ bool MultipleDataViewController::handleEvent(Ion::Events::Event event) {
|
||||
}
|
||||
if (m_selectedSeries >= 0 && (event == Ion::Events::Left || event == Ion::Events::Right)) {
|
||||
int direction = event == Ion::Events::Left ? -1 : 1;
|
||||
if (moveSelectionHorizontally(direction)) {
|
||||
reloadBannerView();
|
||||
}
|
||||
moveSelectionHorizontally(direction);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user