fix style error

This commit is contained in:
chiu 2020-08-04 11:05:28 +08:00
parent a54c1f1f6d
commit aa6df3a1bd
2 changed files with 10 additions and 1 deletions

View File

@ -51,7 +51,13 @@ var Calendar = function(dom){
create_space_width = c.event_create_space.width();
if((create_space_height + c.mousePosition["y"]) >= $(window).height()){
c.event_create_space.css("top",(c.mousePosition["y"] - create_space_height) + "px");
var top_pos = c.mousePosition["y"] - create_space_height
if (top_pos < 0){
c.event_create_space.find('.modal-body').css('height',create_space_height+top_pos)
c.event_create_space.css("top",0 + "px");
}else{
c.event_create_space.css("top",top_pos + "px");
}
}else{
c.event_create_space.css("top",c.mousePosition["y"] + "px");
}

View File

@ -10,6 +10,9 @@
display: block;
opacity: 0;
}
.controls[data-toggle^="buttons-"] .checkbox.inline.btn{
position: relative;
}
</style>
<% if @event.errors.any? %>
<div id="error_explanation">