Let todo list in day view take full height

This commit is contained in:
Nathan Gray 2015-12-02 16:17:04 +00:00
parent a71ab3b066
commit 60539797af
4 changed files with 9 additions and 14 deletions

View File

@ -1864,13 +1864,12 @@ app.classes.calendar = AppJS.extend(
{
if(state.state.view == 'day' && state.state.owner.length === 1 && !isNaN(state.state.owner) && state.state.owner[0] >= 0)
{
if(this.state.view !== 'day')
{
view.etemplates[0].widgetContainer.iterateOver(function(w) {
w.set_width(w.div.width() * 0.7);
},this,et2_calendar_timegrid);
}
$j(view.etemplates[1].DOMContainer).css("left","69%");
view.etemplates[0].widgetContainer.iterateOver(function(w) {
w.set_width($j(view.etemplates[0].DOMContainer).width() * 0.69);
},this,et2_calendar_timegrid);
$j(view.etemplates[1].DOMContainer).css({"left":"69%", "height":$j(framework.tabsUi.activeTab.contentDiv).height()+'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

@ -595,7 +595,9 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
}
.calendar_calDayTodos .calendar_calDayTodosTable {
overflow: auto;
max-height: 400px;
position: absolute;
top: 2em;
bottom: 8px;
}
.calendar_calDayTodos {
width: 98%;

View File

@ -922,10 +922,6 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
background-color: inherit;
}
.calendar_calDayTodos .calendar_calDayTodosTable {
overflow: auto;
max-height: 400px;
}
.calendar_calDayTodos .calendar_calDayTodosTable table tr:nth-child(even) {
background: #ffffff;
}

View File

@ -1022,8 +1022,6 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
}
}
.calendar_calDayTodos .calendar_calDayTodosTable {
overflow: auto;
max-height: 400px;
table {