@@ -141,63 +141,6 @@ export default class PatientViewMutationsTab extends React.Component<
141141 renderPending : ( ) => < LoadingIndicator isLoading = { true } size = "small" /> ,
142142 render : ( ) => (
143143 < div style = { { width : WindowStore . size . width - 50 } } >
144- { /*<div*/ }
145- { /* style={{*/ }
146- { /* display: 'flex',*/ }
147- { /* alignItems: 'center',*/ }
148- { /* justifyContent: 'space-between',*/ }
149- { /* marginBottom: 5,*/ }
150- { /* }}*/ }
151- { /*>*/ }
152- { /* <div style={{ display: 'flex', alignItems: 'center' }}>*/ }
153- { /* <LabeledCheckbox*/ }
154- { /* checked={this.dataStore.onlyShowSelectedInVAFChart}*/ }
155- { /* onChange={() =>*/ }
156- { /* this.dataStore.setOnlyShowSelectedInVAFChart(*/ }
157- { /* !this.dataStore.onlyShowSelectedInVAFChart*/ }
158- { /* )*/ }
159- { /* }*/ }
160- { /* labelProps={{ style: { marginRight: 10 } }}*/ }
161- { /* inputProps={{ 'data-test': 'VAFOnlyHighlighted' }}*/ }
162- { /* >*/ }
163- { /* <span style={{ marginTop: -3 }}>*/ }
164- { /* {SHOW_ONLY_SELECTED_LABEL}*/ }
165- { /* </span>*/ }
166- { /* </LabeledCheckbox>*/ }
167- { /* <LabeledCheckbox*/ }
168- { /* checked={this.vafLineChartLogScale}*/ }
169- { /* onChange={() => {*/ }
170- { /* this.vafLineChartLogScale = !this*/ }
171- { /* .vafLineChartLogScale;*/ }
172- { /* }}*/ }
173- { /* labelProps={{ style: { marginRight: 10 } }}*/ }
174- { /* inputProps={{ 'data-test': 'VAFLogScale' }}*/ }
175- { /* >*/ }
176- { /* <span style={{ marginTop: -3 }}>Log scale</span>*/ }
177- { /* </LabeledCheckbox>*/ }
178- { /* <LabeledCheckbox*/ }
179- { /* checked={!this.vafLineChartZeroToOneYAxis}*/ }
180- { /* onChange={() => {*/ }
181- { /* this.vafLineChartZeroToOneYAxis = !this*/ }
182- { /* .vafLineChartZeroToOneYAxis;*/ }
183- { /* }}*/ }
184- { /* labelProps={{ style: { marginRight: 10 } }}*/ }
185- { /* inputProps={{ 'data-test': 'VAFDataRange' }}*/ }
186- { /* >*/ }
187- { /* <span style={{ marginTop: -3 }}>*/ }
188- { /* Set y-axis to data range*/ }
189- { /* </span>*/ }
190- { /* </LabeledCheckbox>*/ }
191- { /* </div>*/ }
192- { /* <DownloadControls*/ }
193- { /* filename="vafHeatmap"*/ }
194- { /* getSvg={() => this.vafLineChartSvg}*/ }
195- { /* buttons={['SVG', 'PNG', 'PDF']}*/ }
196- { /* type="button"*/ }
197- { /* dontFade*/ }
198- { /* />*/ }
199- { /*</div>*/ }
200-
201144 { this . props . sampleManager && (
202145 < VAFChartWrapper
203146 dataStore = { this . dataStore }
@@ -221,23 +164,9 @@ export default class PatientViewMutationsTab extends React.Component<
221164 this . props . patientViewPageStore . coverageInformation
222165 . result
223166 }
167+ headerWidth = { this . showTimeline ? 150 : 50 }
224168 />
225169 ) }
226-
227- { /*<VAFLineChart*/ }
228- { /* dataStore={this.dataStore}*/ }
229- { /* samples={this.props.store.samples.result!}*/ }
230- { /* coverageInformation={*/ }
231- { /* this.props.store.coverageInformation.result!*/ }
232- { /* }*/ }
233- { /* mutationProfileId={*/ }
234- { /* this.props.store.mutationMolecularProfileId.result!*/ }
235- { /* }*/ }
236- { /* sampleManager={this.props.sampleManager}*/ }
237- { /* svgRef={this.vafLineChartSvgRef}*/ }
238- { /* logScale={this.vafLineChartLogScale}*/ }
239- { /* zeroToOneAxis={this.vafLineChartZeroToOneYAxis}*/ }
240- { /*/>*/ }
241170 </ div >
242171 ) ,
243172 showLastRenderWhenPending : true ,
@@ -424,20 +353,14 @@ export default class PatientViewMutationsTab extends React.Component<
424353 < div
425354 style = { {
426355 marginBottom : 20 ,
427- padding : this . showTimeline ? 10 : 5 ,
428356 width : WindowStore . size . width - 50 ,
429357 } }
430358 >
431359 < button
432- className = "btn btn-xs btn-default"
433- style = { {
434- paddingTop : 0 ,
435- paddingBottom : 0 ,
436- marginLeft : this . showTimeline ? - 5 : 0 , // negative margins hardcoded in to make button not move when its clicked
437- marginTop : this . showTimeline ? - 10 : 0 , // ^^
438- } }
360+ className = "btn btn-xs btn-default displayBlock"
439361 onClick = { this . toggleTimeline }
440362 data-test = "ToggleTimeline"
363+ style = { { margin : 'auto' } }
441364 >
442365 { this . showTimeline
443366 ? 'Hide Timeline'
@@ -473,6 +396,7 @@ export default class PatientViewMutationsTab extends React.Component<
473396 this . props . patientViewPageStore
474397 . coverageInformation . result
475398 }
399+ headerWidth = { 150 }
476400 />
477401 </ div >
478402 ) }
@@ -491,7 +415,6 @@ export default class PatientViewMutationsTab extends React.Component<
491415 ) ,
492416 render : ( ) => (
493417 < div data-test = "GenomicEvolutionTab" >
494- { this . timeline . component }
495418 < MSKTabs
496419 activeTabId = { this . plotTab }
497420 onTabClick = { this . setPlotTab }
@@ -500,6 +423,8 @@ export default class PatientViewMutationsTab extends React.Component<
500423 >
501424 < MSKTab id = { PlotTab . LINE_CHART } linkText = "Line Chart" >
502425 < div style = { { paddingBottom : 10 } } >
426+ { this . timeline . component }
427+
503428 { this . vafLineChart . component }
504429 </ div >
505430 </ MSKTab >
0 commit comments