Gbuomprisco / ng2-material-dropdown

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

Fixed opening dropdown overflowing window #68

Open timstableford opened 4 years ago

timstableford commented 4 years ago

When opening a dropdown at the bottom of a window it would cause the window to become bigger rather than drop upwards. However, after scrolling the dropdown would then move up. This was caused by the animations having the height set to 0 when the initial calculation was performed.

This resolves the issue reported in #44, although doesn't add the requested feature.

Pre-fix behaviour: pre-fix

Post-fix behaviour: post-fix

timstableford commented 4 years ago

@Gbuomprisco just tagging in-case PR creation doesn't notify you