Jfoenix: JFXTabPane Header Area Alignment

Created on 9 Mar 2018  路  5Comments  路  Source: sshahine/JFoenix

In the Material Design Guidelines, it says the the Tab Layout should be "centered or aligned with left keyline",

centered or aligned with left keyline

To try and align the tab pane, I tried adding padding to the .depth-container, .tab-header-area .headers-region and .tab-header-background without success.

Something unexpected happens when I add padding to the left side of the .tab-header-area. Instead of just getting padding on the left, it gets padding on the left, and bottom.

Unexpected behavior

CSS:
.jfx-tab-pane .depth-container .tab-header-area { -fx-padding: 0 0 0 30; }

Can this be fixed?

Bug pinned

Most helpful comment

I have found a simple workaround for this issue. Simply add negative padding to the bottom that is equal to the padding you want on the left.

CSS:
.jfx-tab-pane .tab-header-area {
-fx-padding: 0 -50 0 50;
}

All 5 comments

This issue is related to #623

capture
i want help , how can i change the width of this tabHeaderContainer so that it will look like this
capture2

I have found a simple workaround for this issue. Simply add negative padding to the bottom that is equal to the padding you want on the left.

CSS:
.jfx-tab-pane .tab-header-area {
-fx-padding: 0 -50 0 50;
}

@God-Hand #580

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings