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(); create_space_width = c.event_create_space.width();
if((create_space_height + c.mousePosition["y"]) >= $(window).height()){ 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{ }else{
c.event_create_space.css("top",c.mousePosition["y"] + "px"); c.event_create_space.css("top",c.mousePosition["y"] + "px");
} }

View File

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