File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Scheduler/Scheduler/components Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,14 @@ const SchedulerControl: React.FC<ISchedulerControlProps> = React.memo((props) =>
115
115
// Only run when schedulerData is initialized or relevant dependencies change
116
116
} , [ events ] ) ;
117
117
118
+ React . useEffect ( ( ) => {
119
+ if ( state . schedulerData && state . schedulerData . config ) {
120
+ const newConfig = { ...state . schedulerData . config , schedulerMaxHeight : pcfContext . context . mode . allocatedHeight - 100 } ;
121
+ state . schedulerData . config = newConfig ;
122
+ dispatch ( { type : "UPDATE_SCHEDULER" , payload : state . schedulerData } ) ;
123
+ }
124
+ } , [ pcfContext . context . mode . allocatedHeight ] ) ;
125
+
118
126
// Effect: Initialize the scheduler data on mount
119
127
React . useEffect ( ( ) => {
120
128
let isMounted = true ;
You can’t perform that action at this time.
0 commit comments