-
Notifications
You must be signed in to change notification settings - Fork 57
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
IBX-186: The top button of side menus gets hidden at the bottom of the page #1763
IBX-186: The top button of side menus gets hidden at the bottom of the page #1763
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can do better if it comes to naming. I suggested some names, feel free to enhance them.
The target branch should be different.
|
||
container.style.height = `${containerHeight}px`; | ||
}; | ||
const setHeightOnScrollAndResize = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const setHeightOnScrollAndResize = () => { | |
const setContainerHeightTimeout = () => { |
?
const setHeightOnScrollAndResize = () => { | ||
clearTimeout(resizeAndScrollTimeout); | ||
|
||
resizeAndScrollTimeout = setTimeout(setContainerHeight, RESIZE_AND_SCROLL_TIMEOUT); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resizeAndScrollTimeout = setTimeout(setContainerHeight, RESIZE_AND_SCROLL_TIMEOUT); | |
containerHeightTimeout = setTimeout(setContainerHeight, RESIZE_AND_SCROLL_TIMEOUT); |
?
|
||
resizeAndScrollTimeout = setTimeout(setContainerHeight, RESIZE_AND_SCROLL_TIMEOUT); | ||
}; | ||
const setHeightOnResizeAndScroll = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const setHeightOnResizeAndScroll = () => { | |
const addListeners = () => { |
?
global.addEventListener('scroll', setHeightOnScrollAndResize, false); | ||
global.addEventListener('resize', setHeightOnScrollAndResize, false); | ||
}; | ||
const resetHeightOnResizeAndScroll = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const resetHeightOnResizeAndScroll = () => { | |
const removeListeners = () => { |
?
4f48689
to
8b6a5ee
Compare
@@ -33,6 +57,7 @@ | |||
} | |||
|
|||
doc.body.removeEventListener('click', detectClickOutside, false); | |||
resetHeightOnResizeAndScroll(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error function not found?
c52c941
to
e27847a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA - Approved. Tested on 3.2.7-dev experience, 3.3.3-dev experience.
You can merge it up. |
Checklist:
$ composer fix-cs
)