Created
July 15, 2018 12:50
-
-
Save oowekyala/ccc67aa8663e788c072d3824b1c3d22a to your computer and use it in GitHub Desktop.
Removing scroll arrows on JavaFX context menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Works at least on JFX 8 and 9 | |
.context-menu .scroll-arrow { | |
-fx-padding: 0 0 0 0; | |
} | |
.context-menu .menu-item { | |
// OK this is weird but it does solve a padding bug on the context menu. | |
// Without it, items are offset to the bottom, and the last one is partially hidden | |
-fx-border-style: solid; | |
-fx-border-color: transparent; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment