@@ -13,15 +13,15 @@ import {RangeSlider} from '../../ui/RangeSlider.jsx';
13
13
import { FieldGroup } from '../../ui/FieldGroup.jsx' ;
14
14
import { ValidationField } from '../../ui/ValidationField.jsx' ;
15
15
import { showInfoPopup } from '../../ui/PopupUtil.jsx' ;
16
- import { createContentWrapper } from '../../ui/panel/DockLayoutPanel.jsx' ;
16
+ import { SplitContent } from '../../ui/panel/DockLayoutPanel.jsx' ;
17
17
import Validate from '../../util/Validate.js' ;
18
18
import { dispatchActiveTableChanged } from '../../tables/TablesCntlr.js' ;
19
19
import FieldGroupUtils from '../../fieldGroup/FieldGroupUtils' ;
20
20
import FieldGroupCntlr , { dispatchValueChange , dispatchMultiValueChange } from '../../fieldGroup/FieldGroupCntlr.js' ;
21
21
import { getActiveTableId , getColumnIdx } from '../../tables/TableUtil.js' ;
22
22
import { LC , updateLayoutDisplay , getValidValueFrom , getFullRawTable } from './LcManager.js' ;
23
23
import { doPFCalculate , getPhase } from './LcPhaseTable.js' ;
24
- import { LcPeriodogram , startPeriodogramPopup , cancelPeriodogram , popupId } from './LcPeriodogram.jsx' ;
24
+ import { LcPeriodogram , cancelPeriodogram , popupId } from './LcPeriodogram.jsx' ;
25
25
import { LO_VIEW , getLayouInfo } from '../../core/LayoutCntlr.js' ;
26
26
import { isDialogVisible } from '../../core/ComponentCntlr.js' ;
27
27
import { updateSet } from '../../util/WebUtil.js' ;
@@ -241,51 +241,35 @@ const PeriodStandardView = (props) => {
241
241
const aroundButton = { margin : space } ;
242
242
243
243
return (
244
- < div style = { { display : 'flex' , flexDirection : 'column' , flexGrow : 1 , position : 'relative' } } >
244
+ < FieldGroup groupKey = { pfinderkey } style = { { display : 'flex' , flexDirection : 'column' , position : 'relative' , flexGrow : 1 , minHeight : 500 } }
245
+ reducerFunc = { LcPFReducer ( initState ) } keepState = { true } >
245
246
< div style = { { flexGrow : 1 , position : 'relative' } } >
246
- < div style = { { position : 'absolute' , top : 0 , right : 0 , bottom : 0 , left : 0 } } >
247
- < FieldGroup groupKey = { pfinderkey }
248
- reducerFunc = { LcPFReducer ( initState ) } keepState = { true } >
249
- < SplitPane split = 'horizontal' minSize = { 100 } defaultSize = { '90%' } >
250
- < SplitPane split = 'horizontal' minSize = { 100 } defaultSize = { '50%' } >
251
- < SplitPane split = 'vertical' minSize = { 20 } defaultSize = { PanelResizableStyle . width } allowResize = { false } >
252
- { createContentWrapper ( < LcPFOptionsBox /> ) }
253
- { createContentWrapper ( < PhaseFoldingChart /> ) }
254
- </ SplitPane >
255
- { createContentWrapper (
256
- < SplitPane split = 'horizontal' minSize = { 10 } defaultSize = { 30 } >
257
- { displayMode === LC . PERGRAM_PAGE ?
258
- < div style = { aroundButton } >
259
- < button type = 'button'
260
- className = 'button std hl'
261
- onClick = { startPeriodogramPopup ( LC . FG_PERIODOGRAM_FINDER ) } > Change Periodogram
262
- </ button >
263
- </ div > : < div > </ div > }
264
- < LcPeriodogram displayMode = { displayMode } />
265
- </ SplitPane > ) }
266
- </ SplitPane >
267
- < div style = { { width : '100%' , position : 'absolute' ,
268
- height : 20 , marginTop : 5 , marginBottom : 5 ,
269
- display : 'flex' , justifyContent : 'flex-end' } } >
270
- < div style = { aroundButton } >
271
- < button type = 'button' className = 'button std hl' onClick = { ( ) => cancelStandard ( ) } >
272
- Cancel
273
- </ button >
247
+ < SplitPane split = 'horizontal' primary = 'second' maxSize = { - 100 } minSize = { 100 } defaultSize = { 400 } >
248
+ < SplitContent >
249
+ < div className = 'phaseFolded' >
250
+ < div className = 'phaseFolded__options' >
251
+ < LcPFOptionsBox />
274
252
</ div >
275
- < CompleteButton
276
- style = { aroundButton }
277
- groupKey = { [ pfinderkey ] }
278
- onSuccess = { setPFTableSuccess ( ) }
279
- onFail = { setPFTableFail ( ) }
280
- text = { acceptPeriodTxt }
281
- includeUnmounted = { true }
282
- />
253
+ < PhaseFoldingChart />
283
254
</ div >
284
- </ SplitPane >
285
- </ FieldGroup >
255
+ </ SplitContent >
256
+ < LcPeriodogram displayMode = { displayMode } />
257
+ </ SplitPane >
258
+ </ div >
259
+ < div style = { { flexGrow : 0 , display : 'inline-flex' , justifyContent : 'flex-end' , height : 40 } } >
260
+ < div style = { { margin : 5 } } >
261
+ < button type = 'button' className = 'button std hl' onClick = { ( ) => cancelStandard ( ) } > Cancel</ button >
286
262
</ div >
263
+ < CompleteButton
264
+ style = { aroundButton }
265
+ groupKey = { [ pfinderkey ] }
266
+ onSuccess = { setPFTableSuccess ( ) }
267
+ onFail = { setPFTableFail ( ) }
268
+ text = { acceptPeriodTxt }
269
+ includeUnmounted = { true }
270
+ />
287
271
</ div >
288
- </ div >
272
+ </ FieldGroup >
289
273
) ;
290
274
} ;
291
275
@@ -311,6 +295,7 @@ PeriodExpandedView.propTypes = {
311
295
displayMode : PropTypes . string
312
296
} ;
313
297
298
+
314
299
/**
315
300
* @summary 2D xyplot component on phase folding
316
301
*/
0 commit comments