| 968 | } |
| 969 | |
| 970 | void CANavigationController::update(float dt) |
| 971 | { |
| 972 | CAViewController* viewController = m_pViewControllers.back(); |
| 973 | |
| 974 | int y = this->getNavigationBarNowY(viewController); |
| 975 | |
| 976 | CANavigationBar* navBar = m_pNavigationBars.back(); |
| 977 | DLayout navLayout = navBar->getLayout(); |
| 978 | navLayout.vertical.top = y; |
| 979 | navBar->setLayout(navLayout); |
| 980 | |
| 981 | CAView* secondContainer = m_pSecondContainers.back(); |
| 982 | DLayout secondLayout = secondContainer->getLayout(); |
| 983 | secondLayout.vertical.top = navLayout.vertical.top + navLayout.vertical.height; |
| 984 | secondContainer->setLayout(secondLayout); |
| 985 | } |
| 986 | |
| 987 | bool CANavigationController::ccTouchBegan(CATouch *pTouch, CAEvent *pEvent) |
| 988 | { |
no test coverage detected