mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 18:20:14 +01:00
[Update] Upstream
This commit is contained in:
@@ -58,10 +58,15 @@ int ZoomParameterController::ContentView::numberOfSubviews() const {
|
||||
|
||||
View * ZoomParameterController::ContentView::subviewAtIndex(int index) {
|
||||
assert(index >= 0 && index < 2);
|
||||
/* The order of subview is important here :
|
||||
* If we redraw the curveView before the legendView, that can have some display issue, when exiting sleep mode, which
|
||||
can be visible, if the redraw of curveView is long (with complicated curve), so we prefer to have legendView
|
||||
at first subview.
|
||||
*/
|
||||
if (index == 0) {
|
||||
return m_curveView;
|
||||
return &m_legendView;
|
||||
}
|
||||
return &m_legendView;
|
||||
return m_curveView;
|
||||
}
|
||||
|
||||
void ZoomParameterController::ContentView::layoutSubviews(bool force) {
|
||||
|
||||
Reference in New Issue
Block a user