Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal not centering #6

Open
hernandezruizcesar opened this issue Nov 30, 2017 · 5 comments
Open

Modal not centering #6

hernandezruizcesar opened this issue Nov 30, 2017 · 5 comments

Comments

@hernandezruizcesar
Copy link

hernandezruizcesar commented Nov 30, 2017

when i launch the modal window this appear on the foot of the window, some property for resolve this?
captura de pantalla de 2017-11-30 10-03-59

@David-Desmaisons
Copy link
Owner

Create a jsfiddle.

@David-Desmaisons
Copy link
Owner

This is a CSS problem most probable, check the class aplied to the modal.

@ralphjesy12
Copy link

Same problem. This happens, when modal content isn't added before modal open. Thus, requiring a modal('refresh') method to re-center. I am not sure how to call that thru the component.

@davestewart
Copy link

davestewart commented Dec 21, 2017

his is a CSS problem most probable, check the class applied to the modal.

It's actually because you need to update the style / margin-top when the modal shows, and on $nextTick.

I've added this in my fork to the opened watch

@ploissken
Copy link

ploissken commented Aug 13, 2019

Experiencing it too, it was not even centered. In my case it was applying a margin-top: -95px 🤷‍♂️
Fixed it by overriding the component css:

  .ui.modal {
    margin: auto!important;
    margin-top: 15vh!important;
    position: relative!important;
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants