瀏覽代碼

Undid previous change that broke StatusBar

Tig 1 年之前
父節點
當前提交
87c5a43b4a
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Terminal.Gui/Views/Bar.cs

+ 4 - 1
Terminal.Gui/Views/Bar.cs

@@ -153,8 +153,9 @@ public class Bar : View
                     barItem.ColorScheme = ColorScheme;
                     barItem.X = Pos.Align (Alignment.Start, AlignmentModes);
                     barItem.Y = 0; //Pos.Center ();
+                    // HACK: This should not be needed
+                    barItem.SetRelativeLayout (GetContentSize ());
                 }
-
                 break;
 
             case Orientation.Vertical:
@@ -187,6 +188,8 @@ public class Bar : View
                     if (barItem is Shortcut scBarItem)
                     {
                         scBarItem.MinimumKeyTextSize = minKeyWidth;
+                        // HACK: This should not be needed
+                        scBarItem.SetRelativeLayout (GetContentSize ());
                         maxBarItemWidth = Math.Max (maxBarItemWidth, scBarItem.Frame.Width);
                     }