So this how tabpane (it's wrapped in StackPane) looks like after adding two tabs with setClosable(false). Custom CSS is fine here.
After adding a new tab without setClosable(false) it doesn't care my custom css also positioning breaks as well.
Do I have reapply style sheet every time I add new tab or what would be a workaround here?
There is not happening a lot during adding new tab, just setText(). After closing new tab everything goes back to normal.
EDIT: After going through some CSS I think it's a problem at my end, new tab just changes height a bit and places label a bit higher relative to other tabs.
So this how tabpane (it's wrapped in StackPane) looks like after adding two tabs with
After adding a new tab without
setClosable(false)
. Custom CSS is fine here.setClosable(false)
it doesn't care my custom css also positioning breaks as well. Do I have reapply style sheet every time I add new tab or what would be a workaround here?setText()
. After closing new tab everything goes back to normal.EDIT: After going through some CSS I think it's a problem at my end, new tab just changes height a bit and places label a bit higher relative to other tabs.