question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ComboBox is hiding elements below from being clicked/focused

See original GitHub issue

ComboBox is hiding elements below from being clicked/focused after it shows a list of items once.

In the example below after opening a ComboBox list it will be impossible to focus to the TextField by mouse. Only using a keyboard. Example:

var lbComboBox = new Label ("ComboBox") {
ColorScheme = Colors.TopLevel,
X = Pos.Right (lbListView) + 1,
Width = Dim.Percent(40)
};

var comboBox = new ComboBox () {
X = Pos.Right (listview) + 1,
Y = Pos.Bottom (lbListView) + 1,
Height = Dim.Fill (2),
Width = Dim.Percent(40)
};
comboBox.SetSource (items);

comboBox.SelectedItemChanged += (ListViewItemEventArgs text) => lbComboBox.Text = items[comboBox.SelectedItem];
Win.Add (lbComboBox, comboBox);
Win.Add (new TextField { X = Pos.Right (listview) + 1, Y = Pos.Top (comboBox) + 3, Height = 1, Width = 20});

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17

github_iconTop GitHub Comments

2reactions
MrImpossibrucommented, Feb 1, 2022

Maybe it could be a good idea to dynamically change height of the ComboBox when it opens/closes. Then it won’t overlap anything.

1reaction
tznindcommented, Feb 3, 2022

Thanks, I have added it to the PR

Read more comments on GitHub >

github_iconTop Results From Across the Web

ComboBox is hiding elements below from being clicked/ ...
The above fix only works when collapsing the ComboBox with the mouse (on the down dropdown). Selecting from the dropdown with Enter does...
Read more >
Combo box items are hidden behind other controls.
Try using: comboBox. setLightWeightPopupEnabled(false); See Mixing Lightweight and Heavyweight Components for why this should work.
Read more >
modal content not able scroll when overflow =initial/visible ...
I have a modal with a fixed height, so if the number of fields increase in the modal, scrollbar appears as expected.
Read more >
Hide empty ComboBox - Power Platform Community - Microsoft
I am trying to hide a data card based on if a ComboBox is empty. I'd like to do something like the following...
Read more >
Combobox Pattern | APG | WAI
About This Pattern. A combobox is an input widget that has an associated popup. The popup enables users to choose a value for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found