I've been playing with JavaFX Scene Builder -- weirdly enough, all of my buttons have an extra pixel of height. The layout bounds are what I'd like, of course, but the boundsInLocal are always an extra vertical pixel long. This means the buttons aren't simply a pixel longer, it means there's a white bar affixed to the bottom of the buttons.

I'm wondering if this is like a "placeholder" for highlighting or similar. Seems like the boundsInLocal value is read-only, but I feel like this is only happening to me.

Thanks in advance

Oh, it is a "placeholder" for the default blue highlight.

From what I gathered here,

.button:focused {
    -fx-background-insets: 0, 0, 1, 2;
}

.button {
    -fx-background-insets: 0, 0, 1, 2;
}

takes away the effect and the buttons lose their anticipatory extra line of bounds.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.