设置 FontComboBox 的最小宽度 (#3424)
This commit is contained in:
@@ -35,6 +35,8 @@ public class FontComboBox extends JFXComboBox<String> {
|
|||||||
private boolean loaded = false;
|
private boolean loaded = false;
|
||||||
|
|
||||||
public FontComboBox() {
|
public FontComboBox() {
|
||||||
|
setMinWidth(260);
|
||||||
|
|
||||||
styleProperty().bind(Bindings.concat("-fx-font-family: \"", valueProperty(), "\""));
|
styleProperty().bind(Bindings.concat("-fx-font-family: \"", valueProperty(), "\""));
|
||||||
|
|
||||||
setCellFactory(listView -> new JFXListCell<String>() {
|
setCellFactory(listView -> new JFXListCell<String>() {
|
||||||
|
|||||||
Reference in New Issue
Block a user