* Calendar - Fix today button positioning - was too far down in Firefox

This commit is contained in:
nathangray 2018-07-20 10:09:58 -06:00 committed by Hadi Nategh
parent 44dc8e8241
commit 021f49feec
4 changed files with 25 additions and 7 deletions

View File

@ -3432,12 +3432,12 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
if(today.length && go_button.length)
{
go_button.position({my: 'left+8px center', at: 'right center-1',of: jQuery('#calendar-sidebox_date .ui-datepicker-year')});
today.css({
'left': (buttons.first().offset().left + buttons.last().offset().left)/2 - Math.ceil(today.outerWidth(true)/2),
'top': go_button.css('top')
});
buttons.position({my: 'center', at: 'center', of: go_button})
.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),
});
}
if(auto_update)
{

View File

@ -67,6 +67,9 @@
#calendar-et2_target {
position: relative;
}
#calendar-et2_target > div {
position: relative;
}
#calendar-sidebox_owner {
width: 90%;
}

View File

@ -89,6 +89,9 @@
#calendar-et2_target {
position: relative;
}
#calendar-et2_target > div {
position: relative;
}
#calendar-sidebox_owner {
width: 90%;
}
@ -1362,6 +1365,12 @@ Hide subsequent headers in week view with non-consolidated owners
}
.calendar_freetime_dow {
position: absolute;
width: 30ex;
height: 22em;
}
.calendar_freetime_dow ul.ui-multiselect-checkboxes {
overflow-y: visible;
height: 20em;
}
img.calendar_print_button,
img.calendar_print_appicon {
@ -1518,6 +1527,8 @@ img.calendar_print_appicon {
#calendar-list {
/* Keeps the scrollbar in the window in chrome */
margin-right: 10px;
/* Prevents going to far down (off bottom)*/
height: calc(25%);
}
#calendar_sidebox_content .egw_fw_ui_category_content {
padding-left: 0px !important;
@ -2135,7 +2146,8 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
* border-color: depending on category
* background: depending on category (shade)
*/
background-color: #679FD2;
background-color: #679fd2;
border-top: 1px solid;
}
.calendar_calEvent:not([class*=" cat_"]) {
/* Defaults for no category, so we don't override it */

View File

@ -77,6 +77,9 @@
#calendar-et2_target {
position: relative;
}
#calendar-et2_target > div {
position: relative;
}
#calendar-sidebox_owner {
width: 90%;
}
@ -1354,8 +1357,8 @@ Hide subsequent headers in week view with non-consolidated owners
height: 22em;
}
.calendar_freetime_dow ul.ui-multiselect-checkboxes {
overflow-y: visible;
height: 20em;
overflow-y: visible;
height: 20em;
}
img.calendar_print_button,
img.calendar_print_appicon {