1.  
  2. var showBottomBody = function(e) {
  3. prevExpanded.setStyleProperty("borderTop", "2px solid #526d7b");
  4. prevExpanded.setStyleProperty("borderRight", "1px solid #adc3ce");
  5. prevExpanded.setStyleProperty("borderBottom", "0");
  6. bottomHider.setLocation(bottomTab.getLeft()+prevExpanded.getLeft(), bottomTab.getTop()+prevExpanded.getHeight()-6);
  7. bottomBody.setStyleProperty("display", "");
  8. sizeAnimator2.start();
  9. };
  10. ...
  11. if (topExpanded == undefined) {
  12. prevExpanded = btn;
  13. showBottomBody(e);
  14. ...
  15. }
  16.  
  17.