浏览代码

Shrink if there's no guide selected

CPKreuz 2 年之前
父节点
当前提交
5027811d02
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/PixiEditor/Views/Dialogs/Guides/GuidesManager.xaml.cs

+ 5 - 0
src/PixiEditor/Views/Dialogs/Guides/GuidesManager.xaml.cs

@@ -59,6 +59,11 @@ public partial class GuidesManager : Window
             var newGuide = (Guide)e.AddedItems[0];
             newGuide.IsEditing = true;
         }
+
+        if (guideList.SelectedIndex == -1)
+        {
+            Width = 250;
+        }
     }
 
     private void Border_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)