Skip to content

Commit

Permalink
Merge pull request #7342 from dgt41/isisSafariRuberBandFix
Browse files Browse the repository at this point in the history
Isis fix for safari bug #5970
  • Loading branch information
wilsonge committed Jul 7, 2015
2 parents 72ac015 + 3f9ee3b commit aad5ab3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions administrator/templates/isis/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ function processScrollInit()
if ($('.subhead').length) {
navTop = $('.subhead').length && $('.subhead').offset().top - <?php echo ($displayHeader || !$statusFixed) ? 30 : 20;?>;

// Fix the container top
$(".container-main").css("top", $('.subhead').height() + $('nav.navbar').height());

// Only apply the scrollspy when the toolbar is not collapsed
if (document.body.clientWidth > 480)
{
Expand All @@ -325,6 +328,9 @@ function processScroll()
if (scrollTop >= navTop && !isFixed) {
isFixed = true;
$('.subhead').addClass('subhead-fixed');

// Fix the container top
$(".container-main").css("top", $('.subhead').height() + $('nav.navbar').height());
} else if (scrollTop <= navTop && isFixed) {
isFixed = false;
$('.subhead').removeClass('subhead-fixed');
Expand Down

0 comments on commit aad5ab3

Please sign in to comment.