You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dave Strus edited this page Nov 18, 2014
·
1 revision
Sizing elements with JavaScript
Both our sidebar and our Bootsy editor should fill what vertical space is available to them. CSS alone isn't adequate to handle the job, but we can get it done easily with JavaScript.
We'll just add 3 lines to the closure we created to run on page load. This time we're creating something to occur whenever the page is resized, and then we're actually triggering a resize event so the handler will also run when the page is first loaded.