Skip to content

Commit

Permalink
Merge pull request #6 from JabRef/master
Browse files Browse the repository at this point in the history
update 2021.3.12
  • Loading branch information
XDZhelheim authored Mar 12, 2021
2 parents 8428b49 + 8bb7668 commit 3fd7a0d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
- We fixed an issue where a non valid value as font size results in an uncaught exception. [#7415](https://github.com/JabRef/jabref/issues/7415)
- We fixed an issue where "Merge citations" in the Openoffice/Libreoffice integration panel did not have a corresponding opposite. [#7454](https://github.com/JabRef/jabref/issues/7454)
- We fixed an issue where drag and drop of bib files for opening resulted in uncaught exceptions [#7464](https://github.com/JabRef/jabref/issues/7464)
- We fixed an issue where columns shrink in width when we try to enlarge JabRef window. [#6818](https://github.com/JabRef/jabref/issues/6818)
- We fixed an issue where Content selector does not seem to work for custom fields. [#6819](https://github.com/JabRef/jabref/issues/6819)

### Removed
Expand Down
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ configurations {
}

javafx {
version = "15.0.1"
version = "16"
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.web', 'javafx.swing' ]
}

Expand Down Expand Up @@ -175,6 +175,8 @@ dependencies {
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '3.0.0-SNAPSHOT'
annotationProcessor group: 'org.apache.logging.log4j', name: 'log4j-core', version: '3.0.0-SNAPSHOT'

// SNAPSHOT is required because of plain-java support
// See https://github.com/michel-kraemer/citeproc-java/issues/92 for details
implementation 'de.undercouch:citeproc-java:3.0.0-SNAPSHOT'

implementation group: 'jakarta.activation', name: 'jakarta.activation-api', version: '1.2.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,18 @@ private Boolean initColumnSize(TableView<?> table) {

if (Math.abs(totalWidth - tableWidth) > 1) {
double totalPrefWidth = visibleLeafColumns.stream().mapToDouble(TableColumnBase::getPrefWidth).sum();
double currPrefWidth = 0;
if (totalPrefWidth > 0) {
for (TableColumnBase col : visibleLeafColumns) {
double share = col.getPrefWidth() / totalPrefWidth;
double newSize = tableWidth * share;

// Just to make sure that we are staying under the total table width (due to rounding errors)
newSize -= 2;
currPrefWidth += newSize;
if (currPrefWidth > tableWidth) {
newSize -= currPrefWidth - tableWidth;
currPrefWidth -= tableWidth;
}

resize(col, newSize - col.getWidth());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private void initialize(String newStyle, CitationStyleOutputFormat newFormat) th
if ((cslInstance == null) || !Objects.equals(newStyle, style)) {
// lang and forceLang are set to the default values of other CSL constructors
cslInstance = new CSL(dataProvider, new JabRefLocaleProvider(),
new DefaultAbbreviationProvider(), null, newStyle, "en-US");
new DefaultAbbreviationProvider(), newStyle, "en-US");
style = newStyle;
}

Expand Down

0 comments on commit 3fd7a0d

Please sign in to comment.