Stop day view resize while hidden - it gets the size wrong.

This commit is contained in:
Nathan Gray 2016-05-03 21:10:20 +00:00
parent e4aa767911
commit 106652b2d2

View File

@ -2201,7 +2201,8 @@ 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())
{
if($j(view.etemplates[0].DOMContainer).is(':visible'))
{
view.etemplates[0].widgetContainer.iterateOver(function(w) {
w.set_width($j(view.etemplates[0].DOMContainer).width() * 0.69);
},this,et2_calendar_timegrid);
@ -2214,6 +2215,7 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
},view.etemplates[1].widgetContainer);
view.etemplates[0].resize();
}
}
else
{
$j(app.classes.calendar.views.day.etemplates[1].DOMContainer).show();