Skip to content

Instantly share code, notes, and snippets.

@oowekyala
Created July 15, 2018 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oowekyala/ccc67aa8663e788c072d3824b1c3d22a to your computer and use it in GitHub Desktop.
Save oowekyala/ccc67aa8663e788c072d3824b1c3d22a to your computer and use it in GitHub Desktop.
Removing scroll arrows on JavaFX context menu
// 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