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

Groups/search window doesn't close #8082

Closed
2 tasks done
wujastyk opened this issue Sep 12, 2021 · 13 comments
Closed
2 tasks done

Groups/search window doesn't close #8082

wujastyk opened this issue Sep 12, 2021 · 13 comments
Assignees
Labels
bug Confirmed bugs or reports that are very likely to be bugs ui

Comments

@wujastyk
Copy link

JabRef version

Latest development branch build (please note build date below)

Operating system

GNU / Linux

Details on version and operating system

JabRef 5.4--2021-09-11--366f0cf Linux 5.4.0-84-generic amd64 Java 16.0.2 JavaFX 17+18

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. Open JabRef
  2. left half of the display is blank, where groups/search would be if invoked.

image

Appendix

...

Log File ``` Paste an excerpt of your log file here ```
@Siedlerchr
Copy link
Member

@calixtus à side effect (no pun intended) of getting rid of the fxml?

@calixtus
Copy link
Member

calixtus commented Sep 12, 2021

Possibly. On the code side, the groups panel code is separated from the side panel stuff. But maybe something unforeseen. Need to investigate.

@calixtus calixtus self-assigned this Sep 12, 2021
@Siedlerchr
Copy link
Member

I can confirm this in the dev version as well:
Uncheck all things related to the sidebar in the View menu (e.g. groups and search) and then you see it. Scenic view shows there is still some empty vbox lurking around

grafik

@Siedlerchr Siedlerchr added bug Confirmed bugs or reports that are very likely to be bugs ui labels Sep 17, 2021
@Siedlerchr
Copy link
Member

Siedlerchr commented Sep 17, 2021

I tried to debug it and I think I discovered the cause: The ChangeListener is only called when I close JabRef, not when I open it, although it should fire when shown=true

mainStage.showingProperty().addListener(new ChangeListener<>() {
@Override
public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean showing) {
if (showing) {
setDividerPosition();

For reference JabRef 5.4--2021-09-02--9c5b8ab
Mac OS X 11.5 x86_64
Java 16.0.2
JavaFX 16+8

works fine

@Siedlerchr
Copy link
Member

Testing further shows that the change listener also did not trigger in javafx16, so we can rule out that it happend with the jfx 17 upgrade I think

@calixtus
Copy link
Member

I have been working on something else with any Listener on an ObservableMap, that is not firing. Could there maybe a problem with javafx?

On the otherhand: I heavily tried closing the sidepane on my windows machine and was not able to reproduce this bug...

@calixtus
Copy link
Member

I tried to move the SidePanePreferences to the new Preferences model, the whole logic with an enum of SidePaneType is an overcomplicated mess...

@Siedlerchr
Copy link
Member

@calixtus This was fixed by #8202 ?

@wujastyk
Copy link
Author

Yes, I noticed the problem disappeared a day or two ago. I'm on

JabRef 5.4--2021-12-16--5792f0f
Linux 5.13.0-22-generic amd64 
Java 16.0.2 
JavaFX 17.0.1+1

and it's fine.

@calixtus
Copy link
Member

@Siedlerchr yes should be. @wujastyk can you test please, if the the sidepane keeps its width after closing and reopening?

@Siedlerchr
Copy link
Member

On mac I have the problem that the exact size is not kept after closing and reopening JabRef. Would be interesting to see if this only a mac issue or if it affects other platforms.

@wujastyk
Copy link
Author

JabRef 5.4--2021-12-16--5792f0f
Linux 5.13.0-22-generic amd64
Java 16.0.2
JavaFX 17.0.1+1

On my system the selected width of the web-search and groups sidebar is preserved after closing and restarting JabRef.

@calixtus
Copy link
Member

@Siedlerchr Maybe a mac thing? Im sorry, but I cannot debug this then.

@koppor koppor moved this to Done in Prioritization Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs ui
Projects
Archived in project
Development

No branches or pull requests

3 participants