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

Fix computing hit character if padding is set on the paragraph-text #396

Merged
merged 1 commit into from
Dec 26, 2016

Commits on Nov 17, 2016

  1. fix computing hit character (at mouse press) if padding is set on the…

    … paragraph-text
    
    To reproduce this, apply a large padding (as below), click at some text in the styled text area and see where the caret is positioned. Without this fix the caret is always some characters right to the click location.
    
    .styled-text-area .paragraph-box .paragraph-text {
        -fx-padding: 0 10em 0 10em;
    }
    .styled-text-area .paragraph-box:first-paragraph .paragraph-text {
        -fx-padding: 10em 10em 0 10em;
    }
    .styled-text-area .paragraph-box:last-paragraph .paragraph-text {
        -fx-padding: 0 10em 10em 10em;
    }
    DevCharly committed Nov 17, 2016
    Configuration menu
    Copy the full SHA
    e8b626c View commit details
    Browse the repository at this point in the history