mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Stop day view resize while hidden - it gets the size wrong.
Another attempt, preventing events from resizing incorrectly
This commit is contained in:
parent
56595a648c
commit
b408d9fa1d
@ -2197,11 +2197,9 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
|
|||||||
if(state.state.last && state.state.last.toJSON) state.state.last = state.state.last.toJSON();
|
if(state.state.last && state.state.last.toJSON) state.state.last = state.state.last.toJSON();
|
||||||
|
|
||||||
// Toggle todos
|
// Toggle todos
|
||||||
if(state.state.view == 'day' || this.state.view == 'day')
|
if((state.state.view == 'day' || this.state.view == 'day') && $j(view.etemplates[0].DOMContainer).is(':visible'))
|
||||||
{
|
{
|
||||||
if(state.state.view == 'day' && state.state.owner.length === 1 && !isNaN(state.state.owner) && state.state.owner[0] >= 0 && !egwIsMobile())
|
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) {
|
view.etemplates[0].widgetContainer.iterateOver(function(w) {
|
||||||
w.set_width($j(view.etemplates[0].DOMContainer).width() * 0.69);
|
w.set_width($j(view.etemplates[0].DOMContainer).width() * 0.69);
|
||||||
@ -2215,7 +2213,6 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
|
|||||||
},view.etemplates[1].widgetContainer);
|
},view.etemplates[1].widgetContainer);
|
||||||
view.etemplates[0].resize();
|
view.etemplates[0].resize();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$j(app.classes.calendar.views.day.etemplates[1].DOMContainer).show();
|
$j(app.classes.calendar.views.day.etemplates[1].DOMContainer).show();
|
||||||
|
@ -857,10 +857,6 @@ var et2_calendar_daycol = (function(){ "use strict"; return et2_valueWidget.exte
|
|||||||
*/
|
*/
|
||||||
position_event: function(event)
|
position_event: function(event)
|
||||||
{
|
{
|
||||||
// Not visible? Skip it for speed.
|
|
||||||
// Should be called again as part of resize when shown.
|
|
||||||
if(!this.div.is(':visible')) return;
|
|
||||||
|
|
||||||
// Sort events into minimally-overlapping columns
|
// Sort events into minimally-overlapping columns
|
||||||
var columns = this._spread_events();
|
var columns = this._spread_events();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user