Skip to content

Commit 468cbc0

Browse files
committed
StyledTextField initial height fix
1 parent e2a48ed commit 468cbc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

richtextfx/src/main/java/org/fxmisc/richtext/StyledTextField.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public abstract class StyledTextField<PS, S> extends StyledTextArea<PS, S>
8080
// Ugly hack to get a TextFields default height :(
8181
// as it differs between Caspian, Modena, etc.
8282
TextField tf = new TextField( "GetHeight" );
83-
new Scene(tf); tf.applyCss(); tf.layout();
83+
new Scene(tf).snapshot( null );
8484
HEIGHT = tf.getHeight();
8585
}
8686

0 commit comments

Comments
 (0)