PanelEdit: Fixed scroll pos moved to top when clicking new radio buttons (#24146)

This commit is contained in:
Torkel Ödegaard 2020-05-04 13:37:43 +02:00 committed by GitHub
parent b57802e61f
commit 2d5e675d4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -46,6 +46,7 @@ export function findNumericFieldMinMax(data: DataFrame[]): GlobalMinMax {
let max = Number.MIN_VALUE;
const reducers = [ReducerID.min, ReducerID.max];
for (const frame of data) {
for (const field of frame.fields) {
if (field.type === FieldType.number) {

View File

@ -44,8 +44,6 @@ const getRadioButtonStyles = stylesFactory((theme: GrafanaTheme, size: RadioButt
return {
radio: css`
position: absolute;
top: 0;
left: -100vw;
opacity: 0;
z-index: -1000;

View File

@ -98,7 +98,7 @@ export const OptionsPaneContent: React.FC<Props> = ({
/>
</TabsBar>
<TabContent className={styles.tabContent}>
<CustomScrollbar>
<CustomScrollbar autoHeightMin="100%">
{showMainTab ? (
<PanelOptionsTab
panel={panel}