forked from extern/egroupware
Do not scroll time grid when you're dragging over the header.
This commit is contained in:
parent
f6cc24cb15
commit
dfa30deb56
@ -324,6 +324,8 @@ var et2_calendar_timegrid = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResiz
|
||||
|
||||
// Make sure the target is visible in the scrollable day
|
||||
var scrollto = element.dropEnd.next() ? element.dropEnd.next() : element.dropEnd;
|
||||
if(this.scrolling.find(element.dropEnd).length == element.dropEnd.length)
|
||||
{
|
||||
if(scrollto.length && this.scrolling.height() + this.scrolling.scrollTop() < scrollto.position().top+scrollto.height() )
|
||||
{
|
||||
scrollto.get(0).scrollIntoView(false);
|
||||
@ -332,6 +334,11 @@ var et2_calendar_timegrid = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResiz
|
||||
{
|
||||
this.scrolling.scrollTop(element.dropEnd.position().top);
|
||||
}
|
||||
else if (element.dropEnd.prev() && element.dropEnd.prev().position().top < this.scrolling[0].scrollTop)
|
||||
{
|
||||
this.scrolling.scrollTop(element.dropEnd.prev().position().top);
|
||||
}
|
||||
}
|
||||
var time = '';
|
||||
if(this._drop_data.whole_day)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user