Skip to content

Commit 9a03869

Browse files
ergunshDevtools-frontend LUCI CQ
authored andcommitted
[InspectorView] Keep drawer orientation preference per dock position
This CL: * Updates the default drawer position to be VERTICAL when DevTools is docked to bottom. * Listens for the dock side changed events and updates the drawer positioning according to the preference. * If the preference for bottom docked position is unset, it defaults to VERTICAL. For other cases, it defaults to HORIZONTAL. Fixed: 447294684 Change-Id: If426756e4477688326bd371421aa720ae16dfe13 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6983142 Reviewed-by: Piotr Paulski <[email protected]> Commit-Queue: Ergün Erdoğmuş <[email protected]> Reviewed-by: Alex Rudenko <[email protected]>
1 parent 2ddbd54 commit 9a03869

File tree

4 files changed

+287
-110
lines changed

4 files changed

+287
-110
lines changed

front_end/testing/EnvironmentHelpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ export async function initializeGlobalVars({reset = true} = {}) {
326326
Common.Settings.SettingType.BOOLEAN),
327327
createSettingValue(Common.Settings.SettingCategory.ELEMENTS, 'global-ai-button-click-count', 0),
328328
createSettingValue(Common.Settings.SettingCategory.ACCOUNT, 'receive-gdp-badges', false),
329+
createSettingValue(Common.Settings.SettingCategory.GLOBAL, 'currentDockState', 'right'),
329330
];
330331

331332
Common.Settings.registerSettingsForTest(settings, reset);

0 commit comments

Comments
 (0)