Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amend GOVUK.StickAtTopWhenScrolling #343

Merged
merged 1 commit into from
Oct 24, 2016

Commits on Oct 21, 2016

  1. Add a check for a .js-sticky-resize class

    If it exists soon the sticky element, then find the width of the parent
    element (as we’re assuming by having set this class that it’s in a
    grid-column that will change it’s width when resized).
    
    Get the width of the parent element and set the width of the shim and
    the width of the sticky element to match when the window is resized.
    
    In the tests, create a wrapper element with a width defined (300px) to
    check that the width is also set for the sticky element and shim.
    gemmaleigh committed Oct 21, 2016
    Configuration menu
    Copy the full SHA
    5470a19 View commit details
    Browse the repository at this point in the history