Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //horizontal scroll fix - place it at the very bottom of the js file.
- (function($){
- $(window).live('resize', outlineFix());
- function outlineFix(){
- var w = $(window).width(),
- $obj = $('.right-outline, #header.style3 ul.menu');
- $obj.each(function(index, element) {
- var $this = $(this),
- wid = $this.width(),
- pos = $this.offset().left,
- r = w - pos - wid - 20;
- $this.css({ 'padding-right' : r+'px', 'margin-right': '-'+r+'px' })
- });
- return;
- }
- $(window).load(function(){
- outlineFix();
- });
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement