Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

[Top App Bar] scrolling bug #6589

Closed
Closed
@youra-h

Description

Bug report

Steps to reproduce

  1. Go to Top appbar Standart
    1.1 Disable height .top-app-bar__frame
  2. Shrink the window to show the scroll bar
  3. Scroll down
  4. The top app bar is gone. ok!
  5. 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

Additional context

Possible solution

Metadata

Assignees

No one assigned

    Labels

    Unresolved (Archived)Open and unresolved issues and PRs that were closed due to archiving the repository.bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions