From 46b5a3efb334389246187198b6778a068d871bf7 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Thu, 14 Sep 2017 15:33:37 +0300 Subject: [PATCH] autohide scrollbars in workspace explorer - for #280 --- src/dlangide/ui/commands.d | 2 +- src/dlangide/ui/wspanel.d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dlangide/ui/commands.d b/src/dlangide/ui/commands.d index dc1770c..7b3f500 100644 --- a/src/dlangide/ui/commands.d +++ b/src/dlangide/ui/commands.d @@ -137,7 +137,7 @@ const Action ACTION_HELP_DONATE = new Action(IDEActions.HelpDonate, "MENU_HELP_D const Action ACTION_WINDOW_CLOSE_DOCUMENT = new Action(IDEActions.WindowCloseDocument, "MENU_WINDOW_CLOSE_DOCUMENT"c, null, KeyCode.KEY_W, KeyFlag.Control).disableByDefault(); const Action ACTION_WINDOW_CLOSE_ALL_DOCUMENTS = new Action(IDEActions.WindowCloseAllDocuments, "MENU_WINDOW_CLOSE_ALL_DOCUMENTS"c).disableByDefault(); const Action ACTION_WINDOW_SHOW_HOME_SCREEN = new Action(IDEActions.WindowShowHomeScreen, "MENU_WINDOW_SHOW_HOME_SCREEN"c); -const Action ACTION_WINDOW_SHOW_WORKSPACE_EXPLORER = new Action(IDEActions.WindowShowWorkspaceExplorer, "MENU_WINDOW_SHOW_WORKSPACE_EXPLORER"c); +const Action ACTION_WINDOW_SHOW_WORKSPACE_EXPLORER = new Action(IDEActions.WindowShowWorkspaceExplorer, "MENU_WINDOW_SHOW_WORKSPACE_EXPLORER"c).disableByDefault();; const Action ACTION_CREATE_NEW_WORKSPACE = new Action(IDEActions.CreateNewWorkspace, "OPTION_CREATE_NEW_WORKSPACE"c); const Action ACTION_ADD_TO_CURRENT_WORKSPACE = new Action(IDEActions.AddToCurrentWorkspace, "OPTION_ADD_TO_CURRENT_WORKSPACE"c); diff --git a/src/dlangide/ui/wspanel.d b/src/dlangide/ui/wspanel.d index 9fde5c6..1bab255 100644 --- a/src/dlangide/ui/wspanel.d +++ b/src/dlangide/ui/wspanel.d @@ -76,7 +76,7 @@ class WorkspacePanel : DockWindow { } override protected Widget createBodyWidget() { - _tree = new TreeWidget("wstree"); + _tree = new TreeWidget("wstree", ScrollBarMode.Auto, ScrollBarMode.Auto); _tree.layoutHeight(FILL_PARENT).layoutHeight(FILL_PARENT); _tree.selectionChange = &onTreeItemSelected; _tree.expandedChange.connect(&onTreeExpandedStateChange);