1.  
  2. var sizeAnimator = new BiSizeAnimator(midBody.getWidth(), midBody.getHeight(), midBody.getWidth(), BODY_SIZE, BiSizeAnimator.SPEED4, false, BiComponentAnimation.CONSTANT_SPEED, midBody, 100);
  3. ...
  4. if(topExpanded == undefined || !topExpanded) {
  5. bottomBody.setStyleProperty("display", "none");
  6. if (prevExpanded) {
  7. hideContent(prevExpanded.contentType);
  8. }
  9. btn.setStyleProperty("borderRight", "1px solid #adc3ce");
  10. btn.setStyleProperty("borderTop", "2px solid #526d7b");
  11. btn.setAppearance("y-tab-menu-button y-tab-menu-button-hover");
  12. btn.setStyleProperty("borderBottom", "0");
  13. locationAnimator.setFromTo(bottomTabLeft, bottomTabTop, bottomTabLeft, bottomTabTop+BODY_SIZE);
  14. prevExpanded = btn;
  15. midBody.setStyleProperty("display", "");
  16. sizeAnimator.start();
  17. sizeAnimator3.start();
  18. locationAnimator.start();
  19. locationAnimator.addEventListener("animationend", showContentHandler);
  20. locationAnimator.removeEventListener("animationend", showBottomBody);
  21. }
  22.  
  23.