Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jfoenixadmin/JFoenix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadi Shaheen committed Sep 28, 2020
2 parents 7f064ca + c54ed66 commit 35506b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ Reference the repository from this location using:
* Java 9+
```groovy
dependencies {
compile 'com.jfoenix:jfoenix:9.0.8'
compile 'com.jfoenix:jfoenix:9.0.10'
}
```
* Java 8
```groovy
dependencies {
compile 'com.jfoenix:jfoenix:8.0.8'
compile 'com.jfoenix:jfoenix:8.0.10'
}
```
Expand All @@ -112,15 +112,15 @@ Reference the repository from this location using:
<dependency>
<groupId>com.jfoenix</groupId>
<artifactId>jfoenix</artifactId>
<version>9.0.8</version>
<version>9.0.10</version>
</dependency>
```
* Java 8
```xml
<dependency>
<groupId>com.jfoenix</groupId>
<artifactId>jfoenix</artifactId>
<version>8.0.8</version>
<version>8.0.10</version>
</dependency>
```
# Components
Expand Down
7 changes: 3 additions & 4 deletions jfoenix/src/main/java/com/jfoenix/skins/JFXTabPaneSkin.java
Original file line number Diff line number Diff line change
Expand Up @@ -1056,10 +1056,9 @@ private void updateSkinnableUI(){
}

private boolean showCloseButton() {
return tab.isClosable() &&
(getSkinnable().getTabClosingPolicy().equals(TabPane.TabClosingPolicy.ALL_TABS));
// ||
// getSkinnable().getTabClosingPolicy().equals(TabPane.TabClosingPolicy.SELECTED_TAB) && tab.isSelected());
boolean allTabsPolicy = getSkinnable().getTabClosingPolicy().equals(TabPane.TabClosingPolicy.ALL_TABS);
boolean selectedTabPolicy = getSkinnable().getTabClosingPolicy().equals(TabPane.TabClosingPolicy.SELECTED_TAB) && tab.isSelected();
return (tab.isClosable() && (allTabsPolicy || selectedTabPolicy));
}

private void removeListeners() {
Expand Down

0 comments on commit 35506b7

Please sign in to comment.