Эх сурвалжийг харах

Using cell factory from combobox when initializing popup content in filtered combo. Fixes #177

Martin Cousido 3 жил өмнө
parent
commit
a0931cbb8a

+ 1 - 1
materialfx/src/main/java/io/github/palexdev/materialfx/skins/MFXFilterComboBoxSkin.java

@@ -116,7 +116,7 @@ public class MFXFilterComboBoxSkin<T> extends MFXComboBoxSkin<T> {
 
 		SimpleVirtualFlow<T, Cell<T>> virtualFlow = new SimpleVirtualFlow<>(
 				filterList,
-				t -> new MFXFilterComboBoxCell<>(comboBox, filterList, t),
+				comboBox.getCellFactory(),
 				Orientation.VERTICAL
 		);
 		virtualFlow.cellFactoryProperty().bind(comboBox.cellFactoryProperty());