Ensure that ViewOptions are scrollable

pull/10616/head
Christopher Henn 2018-11-27 10:20:26 -08:00 committed by Chris Henn
parent 9320516b99
commit 36818623d8
3 changed files with 15 additions and 7 deletions

View File

@ -49,7 +49,7 @@
}
}
.time-machine-cusomization {
.time-machine-customization {
background-color: $g2-kevlar;
height: 100%;

View File

@ -180,7 +180,8 @@ $threesizer-shadow-stop: fade-out($g0-obsidian, 1);
height: 100%;
}
.threesizer--header+& {
flex: 1 0 0;
flex: 1 1 0;
overflow: hidden;
}
}

View File

@ -9,6 +9,7 @@ import {setType} from 'src/shared/actions/v2/timeMachines'
import ViewTypeSelector from 'src/shared/components/ViewTypeSelector'
import Threesizer from 'src/shared/components/threesizer/Threesizer'
import OptionsSwitcher from 'src/shared/components/view_options/OptionsSwitcher'
import FancyScrollbar from 'src/shared/components/fancy_scrollbar/FancyScrollbar'
// Utils
import {getActiveTimeMachine} from 'src/shared/selectors/timeMachines'
@ -43,17 +44,23 @@ class ViewOptions extends PureComponent<Props> {
name: 'Visualization Type',
headerButtons: [],
render: () => (
<ViewTypeSelector
type={view.properties.type}
onUpdateType={onUpdateType}
/>
<FancyScrollbar>
<ViewTypeSelector
type={view.properties.type}
onUpdateType={onUpdateType}
/>
</FancyScrollbar>
),
headerOrientation: HANDLE_VERTICAL,
},
{
name: 'Customize',
headerButtons: [],
render: () => <OptionsSwitcher view={view} />,
render: () => (
<FancyScrollbar>
<OptionsSwitcher view={view} />
</FancyScrollbar>
),
headerOrientation: HANDLE_VERTICAL,
},
]