Modal not centered correctly when using detachable: false #1009
Labels
lang/javascript
Anything involving JavaScript
type/bug
Any issue which is a bug or PR which fixes a bug
Milestone
Bug Report
Hello, it seems that the modal is not centering correctly when using option detachable: false and we have a long scrollable content.
My guess is that it is not calculating the top property correctly, it seems to be using the body height instead of viewport height.
Note 1: If you remove detachable : false option it works.
Note 2: If you remove like a paragraph of text you will then see the modal, but it won't be centered though.
Steps to reproduce
Expected result
Modal should be centered.
Actual result
Modal is not centered.
Testcase
jsFiddle link
My original Semantic-ui repository issue link
Version
2.7.8
The text was updated successfully, but these errors were encountered: