diff --git a/src/DynamoCoreWpf/Views/Core/DynamoView.xaml b/src/DynamoCoreWpf/Views/Core/DynamoView.xaml
index 328de8a62a5..bd5c364e1a2 100644
--- a/src/DynamoCoreWpf/Views/Core/DynamoView.xaml
+++ b/src/DynamoCoreWpf/Views/Core/DynamoView.xaml
@@ -207,7 +207,7 @@
-
diff --git a/src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs b/src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs
index c30aff38598..fc7c61dfeaa 100644
--- a/src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs
+++ b/src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs
@@ -1816,9 +1816,12 @@ private void ExtensionHandle_MouseEnter(object sender, MouseEventArgs e)
private bool libraryCollapsed;
private bool extensionsCollapsed;
+ private GridLength? extensionsColumnWidth;
// Default side bar width
private const int defaultSideBarWidth = 200;
+ // By default the extension bar over canvas size ratio is 2/5
+ private const int DefaultExtensionBarWidthMultiplier = 2;
///
/// Check if library is collapsed or expanded
@@ -1873,14 +1876,29 @@ private void UpdateLibraryCollapseIcon()
// Show the extensions right side bar when there is atleast one extension
private void HideOrShowRightSideBar()
{
- if (ExtensionTabItems.Count < 1)
+ if (ExtensionTabItems.Count == 0)
{
+ if (RightExtensionsViewColumn.Width.Value != 0)
+ {
+ extensionsColumnWidth = RightExtensionsViewColumn.Width;
+ }
RightExtensionsViewColumn.Width = new GridLength(0, GridUnitType.Star);
collapsedExtensionSidebar.Visibility = Visibility.Collapsed;
}
else
{
- RightExtensionsViewColumn.Width = new GridLength(defaultSideBarWidth, GridUnitType.Star);
+ // The introduction of extensionsColumnWidth is two-fold:
+ // 1. It allows the resized width to be remembered which is nice to have.
+ // 2. It allows to avoid a slider glitch which sets the panels size in pixel amount but using star,
+ // changing the proportions so that the initial value is counted as pixels after the first resize.
+ if (extensionsColumnWidth == null)
+ {
+ RightExtensionsViewColumn.Width = new GridLength(DefaultExtensionBarWidthMultiplier, GridUnitType.Star);
+ }
+ else
+ {
+ RightExtensionsViewColumn.Width = extensionsColumnWidth.Value;
+ }
collapsedExtensionSidebar.Visibility = Visibility.Visible;
}
}
diff --git a/src/WorkspaceDependencyViewExtension/WorkspaceDependencyView.xaml b/src/WorkspaceDependencyViewExtension/WorkspaceDependencyView.xaml
index 4cfc9431972..346997100c0 100644
--- a/src/WorkspaceDependencyViewExtension/WorkspaceDependencyView.xaml
+++ b/src/WorkspaceDependencyViewExtension/WorkspaceDependencyView.xaml
@@ -9,7 +9,7 @@
xmlns:ui="clr-namespace:Dynamo.UI;assembly=DynamoCoreWpf"
mc:Ignorable="d"
VerticalAlignment="Top"
- HorizontalAlignment="Left">
+ HorizontalAlignment="Stretch">
@@ -153,6 +153,7 @@