Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JFXTabPane Header Area Alignment #640

Open
TurekBot opened this issue Mar 9, 2018 · 5 comments
Open

JFXTabPane Header Area Alignment #640

TurekBot opened this issue Mar 9, 2018 · 5 comments

Comments

@TurekBot
Copy link
Collaborator

TurekBot commented Mar 9, 2018

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?

@jfoenixadmin
Copy link
Collaborator

jfoenixadmin commented Mar 11, 2018

This issue is related to #623

@God-Hand
Copy link

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

@RaisinBranCrunch
Copy link

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;
}

@skmedix
Copy link
Collaborator

skmedix commented May 22, 2018

@God-Hand #580

@stale
Copy link

stale bot commented Jan 7, 2019

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.

@stale stale bot added the wontfix label Jan 7, 2019
@stale stale bot removed the wontfix label Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants