Gbuomprisco / ng2-material-dropdown

Angular 2 Material-like Dropdown Component
MIT License
37 stars 54 forks source link

Update position of dropdown during/after scroll events #14

Closed wolfgang-lausenhammer closed 7 years ago

wolfgang-lausenhammer commented 7 years ago

Fixes https://github.com/Gbuomprisco/ng2-tag-input/issues/96

wolfgang-lausenhammer commented 7 years ago

It would be pretty cool, though, if there was an option somewhere to disable this part of the code in ng2-dropdown-menu.ts, which is something we don't really need.

if (marginFromBottom >= windowScrollHeight) {
    top = `${parseInt(top.replace('px', '')) - clientHeight}px`;
}