mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-01 11:16:11 -04:00
fix scrollbars on combobox popup
This commit is contained in:
parent
27a224e04f
commit
9f9e96cc7b
1 changed files with 5 additions and 0 deletions
|
@ -24,6 +24,7 @@ import javafx.collections.FXCollections;
|
|||
import javafx.collections.ObservableList;
|
||||
import javafx.event.Event;
|
||||
import javafx.event.EventHandler;
|
||||
import javafx.scene.control.ListView;
|
||||
import javafx.scene.input.KeyCode;
|
||||
import javafx.scene.input.KeyEvent;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
@ -180,6 +181,10 @@ public class AutocompleteComboBox<T> extends JFXComboBox<T> {
|
|||
if (matchingListSize() > 0) {
|
||||
comboBoxListViewSkin.getPopupContent().autosize();
|
||||
show();
|
||||
if (comboBoxListViewSkin.getPopupContent() instanceof ListView<?> listView) {
|
||||
listView.applyCss();
|
||||
listView.layout();
|
||||
}
|
||||
} else {
|
||||
hide();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue