sshahine / JFoenix

JavaFX Material Design Library
MIT License
6.27k stars 1.05k forks source link

TabPane weird behaviour after enabling TabClosingPolicy #1180

Closed AnimusXov closed 3 years ago

AnimusXov commented 3 years ago

So this how tabpane (it's wrapped in StackPane) looks like after adding two tabs with setClosable(false). Custom CSS is fine here. java_G6kLbOMS1g 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?

java_GX1xL15TF7 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.

sshahine commented 3 years ago

I'll close this issue for now, feel free to reopen if not resolved