Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete jsdoc
Browse files Browse the repository at this point in the history
adamwoodnz committed Jan 30, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 0b9b873 commit 17d0add
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mu-plugins/blocks/sidebar-container/src/view.js
Original file line number Diff line number Diff line change
@@ -33,7 +33,8 @@ function getCustomPropValue( name, element = document.body ) {
* and toggle the "fixed" class at a certain point.
* Reduce the height of the sidebar to stop it overlapping the footer.
*
* @param {HTMLElement} container
* @param {HTMLElement} container The sidebar container.
* @return {Function} onScroll The sidebar scroll handler.
*/
function createScrollHandler( container ) {
return function onScroll() {
@@ -67,7 +68,7 @@ function createScrollHandler( container ) {

/**
* Set the height for the admin bar and global nav vars.
* Set the floating sidebar class on each container based on their breakpoint.
* Set the floating sidebar class on each container based on its breakpoint.
* Show hidden containers after layout.
*/
function onResize() {

0 comments on commit 17d0add

Please sign in to comment.