Looks like there's a bug with TabPane which happens when a tab is removed and quickly added back, before the layout is updated. This causes incorrect positioning of the headers. It was posted on SO: https://stackoverflow.com/ questions/47616221/javafx-tabpane-tabs-dont-update-position/ and apparently happens on 8, but not on 9. Nir