Fix bug where if daily view is in a window that is to small, vertical scrollbar is in the wrong place

This commit is contained in:
nathangray 2016-12-21 08:12:16 -07:00
parent 6adec19710
commit c88b82c4b0
4 changed files with 7 additions and 21 deletions

View File

@ -2308,11 +2308,9 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
{
if(state.state.view == 'day' && state.state.owner.length === 1 && !isNaN(state.state.owner) && state.state.owner[0] >= 0 && !egwIsMobile())
{
view.etemplates[0].widgetContainer.iterateOver(function(w) {
w.set_width(jQuery(view.etemplates[0].DOMContainer).width() * 0.69);
},this,et2_calendar_timegrid);
jQuery(view.etemplates[1].DOMContainer).css({"left":"69%", "height":(jQuery(framework.tabsUi.activeTab.contentDiv).height()-30)+'px'});
// Set width to 70%, otherwise if a scrollbar is needed for the view, it will conflict with the todo list
jQuery(app.classes.calendar.views.day.etemplates[0].DOMContainer).css("width","70%");
jQuery(view.etemplates[1].DOMContainer).css({"left":"70%", "height":(jQuery(framework.tabsUi.activeTab.contentDiv).height()-30)+'px'});
// TODO: Maybe some caching here
this.egw.jsonq('calendar_uiviews::ajax_get_todos', [state.state.date, state.state.owner[0]], function(data) {
this.getWidgetById('label').set_value(data.label||'');

View File

@ -1004,7 +1004,6 @@ Hide subsequent headers in week view with non-consolidated owners
}
.calendar_calDayTodos {
width: 98%;
margin-left: 10px;
border: 1px solid silver;
}
.calendar_calDayTodosHeader {
@ -1026,7 +1025,7 @@ Hide subsequent headers in week view with non-consolidated owners
border: 1px solid silver;
background-color: #fafafa;
position: absolute;
left: 12px;
left: 2px;
}
/******************************************************

View File

@ -973,7 +973,6 @@ Hide subsequent headers in week view with non-consolidated owners
}
.calendar_calDayTodos {
width: 98%;
margin-left: 10px;
border: 1px solid silver;
}
.calendar_calDayTodosHeader {
@ -994,7 +993,7 @@ Hide subsequent headers in week view with non-consolidated owners
border: 1px solid silver;
background-color: #fafafa;
position: absolute;
left: 12px;
left: 2px;
}
/******************************************************
* CSS settings for the planner views (calendar_plannerWidget) *
@ -1631,7 +1630,7 @@ div.calendar {
}
.calendar thead .active {
/* Active (pressed) buttons in header */
background_color: #408DD2;
background_color: #408dd2;
/*padding: 2px 0px 0px 2px;*/
}
.calendar tbody tr,
@ -2118,7 +2117,7 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
overflow: auto;
}
.calendar_calAddEvent:hover {
background-color: #FFDD73;
background-color: #ffdd73;
cursor: pointer;
color: #ffffff;
}
@ -2267,11 +2266,6 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
background-color: #1aa200;
background-color: #189800 !important;
}
.calendar_calDayTodos {
width: 98%;
margin-left: 10px;
border: 1px solid silver;
}
.calendar_calDayTodosHeader {
text-align: center;
}

View File

@ -899,11 +899,6 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
}
}
.calendar_calDayTodos {
width: 98%;
margin-left: 10px;
border: 1px solid silver;
}
.calendar_calDayTodosHeader {
text-align: center;
}