fix style error
This commit is contained in:
parent
a54c1f1f6d
commit
aa6df3a1bd
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue