Calendar - fix side calendar's Today button positioning

This commit is contained in:
nathangray 2019-08-20 13:54:51 -06:00
parent 0564e61c50
commit 9cbc941c8d
3 changed files with 2 additions and 3 deletions

View File

@ -3611,7 +3611,7 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
.css('left', ''); .css('left', '');
today.position({my: 'top', at: 'top', of: buttons}); today.position({my: 'top', at: 'top', of: buttons});
today.css({ today.css({
'left': (buttons.first().offset().left + buttons.last().offset().left)/2 - Math.ceil(today.outerWidth(true)/2), 'left': (buttons.first().offset().left + buttons.last().offset().left)/2 - Math.ceil(today.outerWidth()/2),
}); });
} }
if(auto_update) if(auto_update)
@ -3755,6 +3755,7 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
} }
} }
}); });
window.setTimeout(calendar_resize,50);
}, },
/** /**

View File

@ -2665,7 +2665,6 @@ div#calendar-container div.calendar table tbody tr.rowhilite td {
text-indent: 140%; text-indent: 140%;
border: none; border: none;
border-radius: 0px; border-radius: 0px;
margin-left: 7px;
background-size: contain; background-size: contain;
background-color: transparent; background-color: transparent;
} }

View File

@ -1207,7 +1207,6 @@ div#calendar-container {
text-indent: 140%; text-indent: 140%;
border: none; border: none;
border-radius: 0px; border-radius: 0px;
margin-left: 7px;
background-size: contain; background-size: contain;
background-color: transparent; background-color: transparent;
&:hover { &:hover {