[apps/shared] In zoom parameter controller, change the layout to avoid

useless redrawing

Change-Id: I4336da535e99e95ace065d26c0f15b02f60ed24d
This commit is contained in:
Émilie Feral
2017-04-21 11:49:54 +02:00
parent 9ee0c7fd5d
commit 46b4adc71c

View File

@@ -82,7 +82,7 @@ View * ZoomParameterController::ContentView::subviewAtIndex(int index) {
}
void ZoomParameterController::ContentView::layoutSubviews() {
m_curveView->setFrame(bounds());
m_curveView->setFrame(KDRect(0, 0, bounds().width(), bounds().height() - k_legendHeight));
m_legendView.setFrame(KDRect(0, bounds().height() - k_legendHeight, bounds().width(), k_legendHeight));
}