"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/daygrid/src/TableRow.tsx" between
fullcalendar-5.9.0.tar.gz and fullcalendar-5.10.0.tar.gz

About: FullCalendar is a full-sized drag & drop JavaScript event calendar.

TableRow.tsx  (fullcalendar-5.9.0):TableRow.tsx  (fullcalendar-5.10.0)
skipping to change at line 96 skipping to change at line 96
state.maxContentHeight, state.maxContentHeight,
props.cells, props.cells,
) )
let isForcedInvisible = // TODO: messy way to compute this let isForcedInvisible = // TODO: messy way to compute this
(props.eventDrag && props.eventDrag.affectedInstances) || (props.eventDrag && props.eventDrag.affectedInstances) ||
(props.eventResize && props.eventResize.affectedInstances) || (props.eventResize && props.eventResize.affectedInstances) ||
{} {}
return ( return (
<tr ref={this.rootElRef}> <tr ref={this.rootElRef} role="row">
{props.renderIntro && props.renderIntro()} {props.renderIntro && props.renderIntro()}
{props.cells.map((cell, col) => { {props.cells.map((cell, col) => {
let normalFgNodes = this.renderFgSegs( let normalFgNodes = this.renderFgSegs(
col, col,
props.forPrint ? singleColPlacements[col] : multiColPlacements[col], props.forPrint ? singleColPlacements[col] : multiColPlacements[col],
props.todayRange, props.todayRange,
isForcedInvisible, isForcedInvisible,
) )
let mirrorFgNodes = this.renderFgSegs( let mirrorFgNodes = this.renderFgSegs(
skipping to change at line 331 skipping to change at line 331
framePositions: new PositionCache( framePositions: new PositionCache(
originEl, originEl,
frameEls, frameEls,
true, // isHorizontal true, // isHorizontal
false, false,
), ),
}) })
} }
} }
let limitByContentHeight = props.dayMaxEvents === true || props.dayMaxEven const oldInstanceHeights = this.state.eventInstanceHeights
tRows === true const newInstanceHeights = this.queryEventInstanceHeights()
const limitByContentHeight = props.dayMaxEvents === true || props.dayMaxEv
entRows === true
this.setState({ this.setState({
eventInstanceHeights: this.queryEventInstanceHeights(), // HACK to prevent oscillations of events being shown/hidden from max-ev
ent-rows
// Essentially, once you compute an element's height, never null-out.
// TODO: always display all events, as visibility:hidden?
eventInstanceHeights: { ...oldInstanceHeights, ...newInstanceHeights },
maxContentHeight: limitByContentHeight ? this.computeMaxContentHeight() : null, maxContentHeight: limitByContentHeight ? this.computeMaxContentHeight() : null,
}) })
} }
} }
queryEventInstanceHeights() { queryEventInstanceHeights() {
let segElMap = this.segHarnessRefs.currentMap let segElMap = this.segHarnessRefs.currentMap
let eventInstanceHeights: { [key: string]: number } = {} let eventInstanceHeights: { [key: string]: number } = {}
// get the max height amongst instance segs // get the max height amongst instance segs
 End of changes. 3 change blocks. 
4 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)