JabRef / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
3.47k stars 2.45k forks source link

"Default library mode" combobox is cut off #11447

Open InAnYan opened 1 week ago

InAnYan commented 1 week ago

JabRef version

5.13 (latest release)

Operating system

GNU / Linux

Details on version and operating system

Xubuntu 23.10 x86_64, XFCE

Checked with the latest development build (copy version output from About dialog)

Steps to reproduce the behaviour

  1. Go to preferences window
  2. Go to "General"
  3. Click on "Default library mode"

Only one item is shown, however actually there are two of them. I still can switch between them using arrow keys.

Appendix

No response

InAnYan commented 1 week ago

Currently will test with other desktop managers

koppor commented 1 week ago

Works great on Windows

koppor commented 1 week ago

Next step: Write a reproducer. See https://github.com/Siedlerchr/javafxreproducer. Maybe, create another app.

InAnYan commented 1 week ago

I've made an MWE: https://github.com/InAnYan/javafx-comboboxes

It seems to work wonderful on Xubuntu, XFCE!

I guess there is some issue also with JabRef CSS styles.

InAnYan commented 1 week ago

@calixtus Can you look into the MWE (https://github.com/InAnYan/javafx-comboboxes) and integrate JabRef CSS files there?

Or you can tell me how to do it properly, because I haven't worked with that, and JabRef has some custom logic for CSS

InAnYan commented 1 week ago

Xubuntu, LXDE works perfectly.

I guess it's some issue with XFCE and JabRef CSS

calixtus commented 1 week ago

Your repo is private, you need to invite me first

InAnYan commented 1 week ago

Ooops, I thought I made it public.

Made it public and added you as a collaborator.

koppor commented 1 week ago

JabRef has some custom logic for CSS

What do you mean by that?

I did not see any CSS logic in your example. Can you add some CSS there? One of the first Google hits (https://docs.oracle.com/javafx/2/css_tutorial/jfxpub-css_tutorial.htm) read that it is straight-forward: scene.getStylesheets().add("path/stylesheet.css");. You could try to use JabRef's full CSS there. If it does not lead to a failing thing, we need to think more. If it leads to a failure, the CSS needs to be cut down. Delete one line, retry... If still issue appears: Delete one line. Repeat until error disappears. Add line again. Delete other lines. With that, one should be able to find the CSS line.

Other idea: JabRef has dynamic reload of CSS, hasn't it? Then, there can be one line after another be deleted to find out the cause?