change default splitter orientation when the setting has not been set (#1946)
This commit is contained in:
parent
0658448b54
commit
0d22d4ab4d
|
@ -238,7 +238,7 @@ exports[`Settings Pane should render Default properly 1`] = `
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
selectedKey="vertical"
|
selectedKey="horizontal"
|
||||||
styles={
|
styles={
|
||||||
{
|
{
|
||||||
"flexContainer": [
|
"flexContainer": [
|
||||||
|
|
|
@ -57,10 +57,10 @@ export const getRUThreshold = (): number => {
|
||||||
|
|
||||||
export const getDefaultQueryResultsView = (): SplitterDirection => {
|
export const getDefaultQueryResultsView = (): SplitterDirection => {
|
||||||
const defaultQueryResultsViewRaw = LocalStorageUtility.getEntryString(StorageKey.DefaultQueryResultsView);
|
const defaultQueryResultsViewRaw = LocalStorageUtility.getEntryString(StorageKey.DefaultQueryResultsView);
|
||||||
if (defaultQueryResultsViewRaw === SplitterDirection.Horizontal) {
|
if (defaultQueryResultsViewRaw === SplitterDirection.Vertical) {
|
||||||
return SplitterDirection.Horizontal;
|
return SplitterDirection.Vertical;
|
||||||
}
|
}
|
||||||
return SplitterDirection.Vertical;
|
return SplitterDirection.Horizontal;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const DefaultRUThreshold = 5000;
|
export const DefaultRUThreshold = 5000;
|
||||||
|
|
Loading…
Reference in New Issue