-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a check for a .js-sticky-resize class (#343)
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.
- Loading branch information
1 parent
8e614da
commit a55cfc0
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters