Fix sidepane opening in the middle of the screen then snapping to configured width
JabRef version
Latest development branch build (please note build date below)
Operating system
Windows
Details on version and operating system
JabRef 6.0-alpha.147--2026-03-17--d7c59e3 Windows 10 10.0 amd64 Java 25.0.2 JavaFX 26+27
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
Problem:
Watch the videos in https://github.com/JabRef/jabref/pull/15390#issue-4119367474
The side-pane opens somewhere in the middle of the screen. After the user manually adjusts the width of the sidepane and restarts JabRef, the side-pane still opens in the middle of the screen, but then snaps to the position that it was manually adjusted to in the prior run. While technically sufficient, this snapping behaviour looks a little odd visually and not very professional.
What should be done:
My request would be to find a way to retain current functionality while getting rid of the snapping visually. Maybe it is possible to render the sidepane only AFTER the snapping has happened and the width has been adjusted?
Additional note:
A fix requires testing on multiple operating systems, as we have made the experience that changes in this part of the code can cause regressions. Contributors could utilize virtual machines or ask the community to help testing.
/assign-me
👋 Hey @pgrigolli, thank you for your interest in this issue! 🎉
We're excited to have you on board. Start by exploring our Contributing guidelines, and set up your local development workspace by following the steps in our workspace setup guidelines to get started smoothly.
For questions on JabRef functionality, you can consult the JabRef Guru. For questions related to the codebase, please start using DeepWiki.
In case you encounter failing tests during development, please check our developer FAQs!
Still facing issues or having more questions? Feel free to ask here on GitHub or on JabRef's Gitter chat. Please don't hesitate to open a (draft) pull request early on to show the direction you are heading towards if unsure.
Happy coding! 🚀
⏰ Assignment Reminder
Hi @pgrigolli, this is a friendly reminder about your assignment to this issue.
[!WARNING] This issue will be automatically unassigned in 7 days if there's no activity.
Remember that you can ask the JabRef Guru or DeepWiki about anything regarding JabRef. Additionally, our contributing guide has hints on creating a pull request and a link to our Gitter chat.
How to keep your assignment
If you are working on it, you can prevent automatic unassignment by:
- Submitting a draft pull request with your progress within 7 days
- Asking for the 📌 Pinned label if you need more time
We appreciate your contribution and are here to help if needed!
Hey @koppor , I've been working on this for a couple days now and I got into something: When I choose a small width (let's say smaller than 50% of screen's width) it works correctly, without that snap! But when I choose a bigger width (>50%) and reopen, it goes to another width that isn't the correct one. Is this a normal behavior considering JabRef shows the menu when it opens?
I recorded a video showing the behavior: https://github.com/user-attachments/assets/5480f6aa-fbbf-4aa0-84e1-897b16b0198c
Thanks for trying :-) I checked and on the master branch this doesn't happen, so that would be a regression. I don't think your code is acceptable in it's current form, but if you want, you can share it as a pull-request and then immediately close the PR. That way, if somebody wants to continue here, they can see what you tried and take that as inspiration. At there very least, they will know what didn't work.
Hey, thanks for your feedback! I will try some other stuff that I thought that also may solve this. If any of this work, I'll do what u said above. Anyway, thanks again!
We think that this issue was fixed. Please head to https://builds.jabref.org/main to download a development build and try it out.
For any feedback, add a comment to the pull request at https://github.com/JabRef/jabref/pull/15553.