[apps/reg] Fix window sizing: cursor appears even with big bannerview

This commit is contained in:
Léa Saviot
2018-07-10 11:56:02 +02:00
committed by Émilie Feral
parent b9992e5eb6
commit 68d915fb3e
22 changed files with 107 additions and 51 deletions

View File

@@ -97,11 +97,6 @@ InteractiveCurveViewRangeDelegate::Range FunctionGraphController::computeYRange(
return range;
}
float FunctionGraphController::addMargin(float x, float range, bool isMin) {
float ratio = isMin ? -k_displayBottomMarginRatio : k_displayTopMarginRatio;
return x+ratio*range;
}
void FunctionGraphController::initRangeParameters() {
interactiveCurveViewRange()->setDefault();
initCursorParameters();