From d71ca21897799c78662a4e3947d20a2a3aff7cc6 Mon Sep 17 00:00:00 2001 From: BDisp Date: Fri, 13 Nov 2020 17:45:22 +0000 Subject: [PATCH] Fixing "LabelsAsButtons.cs" layout as "Buttons.cs" scenario. --- UICatalog/Scenarios/LabelsAsButtons.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/UICatalog/Scenarios/LabelsAsButtons.cs b/UICatalog/Scenarios/LabelsAsButtons.cs index 2b4a2edb8..8eac1985f 100644 --- a/UICatalog/Scenarios/LabelsAsButtons.cs +++ b/UICatalog/Scenarios/LabelsAsButtons.cs @@ -235,7 +235,7 @@ namespace UICatalog { var moveHotKeyBtn = new Label (mhkb) { X = 2, Y = Pos.Bottom (radioGroup) + 1, - Width = mhkb.Length + 10, + Width = Dim.Width (computedFrame) - 2, ColorScheme = Colors.TopLevel, HotKeySpecifier = (System.Rune)'_', CanFocus = true, @@ -249,7 +249,7 @@ namespace UICatalog { var moveUnicodeHotKeyBtn = new Label (muhkb) { X = Pos.Left (absoluteFrame) + 1, Y = Pos.Bottom (radioGroup) + 1, - Width = muhkb.Length + 30, + Width = Dim.Width (absoluteFrame) - 2, ColorScheme = Colors.TopLevel, HotKeySpecifier = (System.Rune)'_', CanFocus = true, @@ -295,6 +295,8 @@ namespace UICatalog { break; } }; + + Top.Ready += () => radioGroup.Refresh (); } } } \ No newline at end of file