Skip to content
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

The underline of the top row is hidden by the background of the bottom row #1258

Open
PavelTurk opened this issue Dec 2, 2024 · 1 comment

Comments

@PavelTurk
Copy link
Contributor

This is test code:

public class RichTextFxTest extends Application {

    @Override
    public void start(Stage stage) throws Exception {
        var textArea1 = new InlineCssTextArea();
        var css = "-rtfx-underline-color: #f80000ff;-rtfx-underline-width: 1px;"
                + "-rtfx-underline-offset: 2px;-rtfx-underline-double-gap: 1px;";
        textArea1.append("AAAAAAAAAAAAAAAAAAAAAAAAA\n", css);
        css = "-rtfx-background-color: #FFFF00ff;";
        textArea1.append("BBBBBBBBBBB\n", css);

        var box = new VBox(new Label("TextArea1"), textArea1);
        var scene = new Scene(box, 300, 300);
        stage.setScene(scene);
        stage.show();
    }
}

And this is the result:

Screenshot from 2024-12-02 14-18-49

I am not sure, but maybe the lines of the top row must be above the background of the bottom row?

@Jugen
Copy link
Collaborator

Jugen commented Dec 10, 2024

Yeah, I'm not sure how to fix that.
BTW it behaves correctly for multi-line paragraphs, but in your example each line is its own paragraph and then doesn't render correctly because each line is independent of the next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants