Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

semantic-ui modal size keeps extending to the height of a page

I'm trying to implement a basic modal, but its size is kept being extended to height of a page.

Trigger code:

$('.ui.modal.apply-modal').modal('show');

Modal Code:

<div class="ui modal apply-modal">
<i class="close icon"></i>
<div class="header">
  Modal Title
</div>
<div class="content">
  facebook
</div>
<div class="actions">
  <div class="ui button">Cancel</div>
  <div class="ui button">OK</div>
</div>

Modal Window

like image 398
Michael Khait Avatar asked May 20 '15 06:05

Michael Khait


2 Answers

It turns out that Bootstrap package is conflicting with Semantic-UI package I use.

Simply by doing:

meteor remove twbs:bootstrap

Things got resolved. Granted, not an ideal solution, but I should not be using both frameworks at the same time anyways.

enter image description here

Well, after about two hours of debugging....

like image 61
Michael Khait Avatar answered Nov 13 '22 08:11

Michael Khait


I had the same issue. My solution was modify the CSS of the modal component from Semantic UI in this way:

 .modal { position: relative;} or #myModal { position: relative;}

<div id="myModal" class="ui small modal"></div>

It works for me, I hope to help you. I agree with Michael Khait, this issue maybe occurs for any conflict between Boostrap and Semantic UI

like image 4
yaircarreno Avatar answered Nov 13 '22 09:11

yaircarreno