jabref icon indicating copy to clipboard operation
jabref copied to clipboard

"Default library mode" combobox is cut off

Open InAnYan opened this issue 1 year ago • 9 comments

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)

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

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 avatar Jul 01 '24 19:07 InAnYan

Currently will test with other desktop managers

InAnYan avatar Jul 01 '24 19:07 InAnYan

Works great on Windows

koppor avatar Jul 01 '24 19:07 koppor

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

koppor avatar Jul 01 '24 19:07 koppor

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 avatar Jul 02 '24 14:07 InAnYan

@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 avatar Jul 02 '24 14:07 InAnYan

Xubuntu, LXDE works perfectly.

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

InAnYan avatar Jul 02 '24 14:07 InAnYan

Your repo is private, you need to invite me first

calixtus avatar Jul 03 '24 04:07 calixtus

Ooops, I thought I made it public.

Made it public and added you as a collaborator.

InAnYan avatar Jul 03 '24 06:07 InAnYan

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?

koppor avatar Jul 03 '24 19:07 koppor