Guest User

Untitled

a guest
Jun 21st, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. fixLayout: function(){
  2.  
  3. // fix width
  4. var wWindow = _elWindow.width();
  5. var wSidebar = _elSidebar.width();
  6.  
  7. if(isIE6 && wWindow < 981) {
  8. _elContainer.css({'width' : '980px'});
  9. } else {
  10. _elContainer.css({'width' : '100%'});
  11. }
  12.  
  13. _elMainContent.css({'margin-left' : wSidebar + 'px'});
  14. ;
  15. // fix sidebar height
  16. _elMainContent.height('auto')
  17. if((_elWindow.height() - 128) > $('.sidebar-content-inner').height() && _elWindow.height() > _elContainer.height()){
  18. _elSidebar.height(_elWindow.height() - 128);
  19. }else if($('.sidebar-content-inner').height() > _elContainer.height()){
  20. _elSidebar.height($('.sidebar-content-inner').height());
  21. _elMainContent.height($('.sidebar-content-inner').height());
  22. }else{
  23. _elSidebar.height(_elContainer.height() - 128);
  24. }
  25.  
  26. // fix profile page accordion
  27. if($('.list-my-profile').length > 0) self.fixProfileList();
  28.  
  29. // fix ie6 PNG bug
  30. if(isIE6) DD_belatedPNG.fix(".bq-header , .bq-header h3 , .bq-content , a.button-show-me-my-price span , #vacation-question , p.sidebar-note , .tooltip , .tooltip-inner , .pi-tl , .pi-tm , .pi-tr , .pi-ml , .pi-mr , .pi-bl , .pi-bm , .pi-br , .popup-image .arrow , .popup-image img , .box-intro , .box-intro-inner , .box-info , .box-info-inner , span.bubble , .button-invite span , .wrapper-list-profile-content , .profile-content , .profile-content-inner , .bq-header h3 a");
  31. },
Add Comment
Please, Sign In to add comment