-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
blink-caret-rate CSS Property doesn't work #426
Comments
Updating .styled-text-area .virtual-flow {
-fx-cursor: text;
-fx-caret-blink-rate: 100ms;
-fx-font-size: 32pt;
} and this code... import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;
import org.fxmisc.flowless.VirtualizedScrollPane;
import org.fxmisc.richtext.StyleClassedTextArea;
import org.fxmisc.richtext.StyledTextArea;
import java.util.Collection;
import java.util.Collections;
public class CssTest extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) {
StyledTextArea<String, Collection<String>> area = new StyledTextArea<String, Collection<String>>("", (a, b) -> {},
Collections.emptyList(), (a, b) -> a.getStyleClass().addAll(b));
area.replaceText("Some text in the area");
VirtualizedScrollPane<StyledTextArea<String, Collection<String>>> vsPane = new VirtualizedScrollPane<>(area);
Scene scene = new Scene(vsPane, 500, 500);
scene.getStylesheets().add(StyleClassedTextArea.class.getResource("styled-text-area.css").toExternalForm());
primaryStage.setScene(scene);
primaryStage.show();
}
} |
@JordanMartinez it works with PR #398 and without .styled-text-area {
-fx-caret-blink-rate: 100ms;
} |
Thanks! However, why does that inclusion cause this problem in the first place? |
Because |
Good to know. Closed by #398 |
Styling this property via CSS does nothing to change the default value of 500ms.
The text was updated successfully, but these errors were encountered: