Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fixLayout: function(){
- // fix width
- var wWindow = _elWindow.width();
- var wSidebar = _elSidebar.width();
- if(isIE6 && wWindow < 981) {
- _elContainer.css({'width' : '980px'});
- } else {
- _elContainer.css({'width' : '100%'});
- }
- _elMainContent.css({'margin-left' : wSidebar + 'px'});
- ;
- // fix sidebar height
- _elMainContent.height('auto')
- if((_elWindow.height() - 128) > $('.sidebar-content-inner').height() && _elWindow.height() > _elContainer.height()){
- _elSidebar.height(_elWindow.height() - 128);
- }else if($('.sidebar-content-inner').height() > _elContainer.height()){
- _elSidebar.height($('.sidebar-content-inner').height());
- _elMainContent.height($('.sidebar-content-inner').height());
- }else{
- _elSidebar.height(_elContainer.height() - 128);
- }
- // fix profile page accordion
- if($('.list-my-profile').length > 0) self.fixProfileList();
- // fix ie6 PNG bug
- 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");
- },
Add Comment
Please, Sign In to add comment