mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
ComboBox. Fix crash
This commit is contained in:
@@ -75,6 +75,8 @@ namespace Terminal.Gui {
|
||||
/// </summary>
|
||||
public ComboBox () : base()
|
||||
{
|
||||
ColorScheme = Colors.Base;
|
||||
|
||||
search = new TextField ("");
|
||||
listview = new ListView () { LayoutStyle = LayoutStyle.Computed, CanFocus = true };
|
||||
|
||||
|
||||
@@ -42,14 +42,14 @@ namespace UICatalog.Scenarios {
|
||||
var lbComboBox = new Label ("ComboBox") {
|
||||
ColorScheme = Colors.TopLevel,
|
||||
X = Pos.Right (lbListView) + 1,
|
||||
Width = Dim.Percent(30)
|
||||
Width = Dim.Percent(60)
|
||||
};
|
||||
|
||||
var comboBox = new ComboBox () {
|
||||
X = Pos.Right (listview) + 1,
|
||||
Y = Pos.Bottom (lbListView) + 1,
|
||||
Height = Dim.Fill (2),
|
||||
Width = Dim.Percent(30)
|
||||
Width = Dim.Percent(60)
|
||||
};
|
||||
comboBox.SetSource (items);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user