This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
Closed
Description
Bug report
Steps to reproduce
- Go to Top appbar Standart
1.1 Disable height.top-app-bar__frame
- Shrink the window to show the scroll bar
- Scroll down
- The top app bar is gone. ok!
- Enlarge the window so that the scroll bar disappears.
The top app bar remained unchanged.This is bug.
I am using code like this, at the moment:
window.addEventListener('scroll', () => {
var element = document.querySelector('body');
var position = element.getBoundingClientRect();
// checking whether fully visible
if(position.top >= 0 && position.bottom <= window.innerHeight) {
$(topAppBarbar.root).animate({top:0}, 'fast');
or
topAppBar.root.style.top = "0";
}
});
Actual behavior
Expected behavior
Screenshots
Your Environment:
Software | Version(s) |
---|---|
MDC Web | 8.0.0 |
Browser | Chrome/Opera |
Operating System | Windows 10 |