From 9cbc941c8db80ef5c9bd92c47581cb77f780f73c Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 20 Aug 2019 13:54:51 -0600 Subject: [PATCH] Calendar - fix side calendar's Today button positioning --- calendar/js/app.js | 3 ++- calendar/templates/pixelegg/app.css | 1 - calendar/templates/pixelegg/app.less | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index 91c54e5409..3e993e2a08 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -3611,7 +3611,7 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend( .css('left', ''); today.position({my: 'top', at: 'top', of: buttons}); 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) @@ -3755,6 +3755,7 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend( } } }); + window.setTimeout(calendar_resize,50); }, /** diff --git a/calendar/templates/pixelegg/app.css b/calendar/templates/pixelegg/app.css index 8630ba2860..fe205b79e0 100755 --- a/calendar/templates/pixelegg/app.css +++ b/calendar/templates/pixelegg/app.css @@ -2665,7 +2665,6 @@ div#calendar-container div.calendar table tbody tr.rowhilite td { text-indent: 140%; border: none; border-radius: 0px; - margin-left: 7px; background-size: contain; background-color: transparent; } diff --git a/calendar/templates/pixelegg/app.less b/calendar/templates/pixelegg/app.less index 04c3bf6a7b..2124bcc92d 100755 --- a/calendar/templates/pixelegg/app.less +++ b/calendar/templates/pixelegg/app.less @@ -1207,7 +1207,6 @@ div#calendar-container { text-indent: 140%; border: none; border-radius: 0px; - margin-left: 7px; background-size: contain; background-color: transparent; &:hover {