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

"Default library mode" combobox is cut off #11447

Open
2 tasks done
InAnYan opened this issue Jul 1, 2024 · 9 comments
Open
2 tasks done

"Default library mode" combobox is cut off #11447

InAnYan opened this issue Jul 1, 2024 · 9 comments

Comments

@InAnYan
Copy link
Collaborator

InAnYan commented Jul 1, 2024

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)

  • 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. 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
Copy link
Collaborator Author

InAnYan commented Jul 1, 2024

Currently will test with other desktop managers

@koppor koppor changed the title "Default library mode" combobox is cutted off "Default library mode" combobox is cut off Jul 1, 2024
@koppor
Copy link
Member

koppor commented Jul 1, 2024

Works great on Windows

@koppor
Copy link
Member

koppor commented Jul 1, 2024

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

@InAnYan
Copy link
Collaborator Author

InAnYan commented Jul 2, 2024

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
Copy link
Collaborator Author

InAnYan commented Jul 2, 2024

@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
Copy link
Collaborator Author

InAnYan commented Jul 2, 2024

Xubuntu, LXDE works perfectly.

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

@calixtus
Copy link
Member

calixtus commented Jul 3, 2024

Your repo is private, you need to invite me first

@InAnYan
Copy link
Collaborator Author

InAnYan commented Jul 3, 2024

Ooops, I thought I made it public.

Made it public and added you as a collaborator.

@koppor
Copy link
Member

koppor commented Jul 3, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants