File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ define([
67
67
///////////////Horizontal Offset////////////////
68
68
var timeOffset = viewModel . getOffset ( cron , true ) ;
69
69
cronOffset . left = timeOffset + panelOffset ( ) ;
70
+ cronOffset . right = cronOffset . left + ( cron . timelineWidth || 0 ) ;
70
71
71
72
return cronOffset ;
72
73
} ;
@@ -190,13 +191,21 @@ define([
190
191
function isInBounds ( cronOffset ) {
191
192
var cTop = cronOffset . top ;
192
193
var cLeft = cronOffset . left ;
194
+ var cRight = cronOffset . right ;
193
195
194
196
if ( cTop > topBoundry && cTop <= bottomBoundry ) {
195
197
if ( cLeft > leftBoundry && cLeft <= rightBoundry ) {
196
198
return true ;
197
199
}
200
+ if ( cRight > leftBoundry && cRight <= rightBoundry ) {
201
+ return true ;
202
+ }
203
+ if ( cLeft < leftBoundry && cRight >= rightBoundry ) {
204
+ return true ;
205
+ }
198
206
return false ;
199
207
}
208
+
200
209
isVerticallyInBounds = false ;
201
210
return false ;
202
211
}
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ define([
116
116
}
117
117
duration = Math . round ( duration ) ;
118
118
duration = duration > minWidth ? duration : minWidth ;
119
+ job . timelineWidth = duration ;
119
120
return duration ;
120
121
} ,
121
122
You can’t perform that action at this time.
0 commit comments