mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 17:57:57 +01:00
Fixes #3951. Add DimFuncWithView with a View dependency
This commit is contained in:
@@ -39,7 +39,6 @@ public class CharacterMap : Scenario
|
||||
{
|
||||
X = 0,
|
||||
Y = 1,
|
||||
Width = Dim.Fill (Dim.Func (() => _categoryList!.Frame.Width)),
|
||||
Height = Dim.Fill (),
|
||||
// SchemeName = "Base"
|
||||
|
||||
@@ -172,6 +171,8 @@ public class CharacterMap : Scenario
|
||||
};
|
||||
top.Add (menu);
|
||||
|
||||
_charMap.Width = Dim.Fill (Dim.FuncWithView (v => v!.Frame.Width, _categoryList));
|
||||
|
||||
_charMap.SelectedCodePoint = 0;
|
||||
_charMap.SetFocus ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user