mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-03 12:16:27 -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.collections.ObservableList;
|
||||||
import javafx.event.Event;
|
import javafx.event.Event;
|
||||||
import javafx.event.EventHandler;
|
import javafx.event.EventHandler;
|
||||||
|
import javafx.scene.control.ListView;
|
||||||
import javafx.scene.input.KeyCode;
|
import javafx.scene.input.KeyCode;
|
||||||
import javafx.scene.input.KeyEvent;
|
import javafx.scene.input.KeyEvent;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
@ -180,6 +181,10 @@ public class AutocompleteComboBox<T> extends JFXComboBox<T> {
|
||||||
if (matchingListSize() > 0) {
|
if (matchingListSize() > 0) {
|
||||||
comboBoxListViewSkin.getPopupContent().autosize();
|
comboBoxListViewSkin.getPopupContent().autosize();
|
||||||
show();
|
show();
|
||||||
|
if (comboBoxListViewSkin.getPopupContent() instanceof ListView<?> listView) {
|
||||||
|
listView.applyCss();
|
||||||
|
listView.layout();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue