Skip to content

Commit

Permalink
forgot TimeGridResizeUtils file
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Dec 26, 2018
1 parent 6b14677 commit 50a088b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/automated/event-resize/TimeGridResizeUtils.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import * as EventResizeUtils from './EventResizeUtils'
import { computeSpanRects } from '../view-render/TimeGridRenderUtils'


export function resize(startDate, endDate, fromStart, debug) {
let rects = computeSpanRects(startDate, endDate)
let firstRect = rects[0]
let lastRect = rects[rects.length - 1]

return EventResizeUtils.resize(
{ top: firstRect.top, left: firstRect.left },
{ top: lastRect.bottom, left: lastRect.left },
fromStart,
debug
)
}

0 comments on commit 50a088b

Please sign in to comment.