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={
|
||||
{
|
||||
"flexContainer": [
|
||||
|
|
|
@ -57,10 +57,10 @@ export const getRUThreshold = (): number => {
|
|||
|
||||
export const getDefaultQueryResultsView = (): SplitterDirection => {
|
||||
const defaultQueryResultsViewRaw = LocalStorageUtility.getEntryString(StorageKey.DefaultQueryResultsView);
|
||||
if (defaultQueryResultsViewRaw === SplitterDirection.Horizontal) {
|
||||
return SplitterDirection.Horizontal;
|
||||
if (defaultQueryResultsViewRaw === SplitterDirection.Vertical) {
|
||||
return SplitterDirection.Vertical;
|
||||
}
|
||||
return SplitterDirection.Vertical;
|
||||
return SplitterDirection.Horizontal;
|
||||
};
|
||||
|
||||
export const DefaultRUThreshold = 5000;
|
||||
|
|
Loading…
Reference in New Issue