InAnYan / jabref

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

Clicking on message should keep scroll position #146

Open koppor opened 1 month ago

koppor commented 1 month ago

image

Scrolls down to the end

image

InAnYan commented 1 month ago

:cry: I spent so much time on this..., tried warious techniques, but they don't work

Need to rethink

InAnYan commented 1 month ago

Ah, I remembered a workaround for that, no cries

InAnYan commented 1 month ago

Huh, wait. You click on message?

It's just because I had a lot of problems, that when you delete message scroll position changes (but I finally managed to solve this!)

InAnYan commented 1 month ago

This is bad

InAnYan commented 1 month ago

It's impossible

InAnYan commented 1 month ago

Ah, it's even impossible with just TextArea.

Guess we will be without auto-scroll

InAnYan commented 1 month ago

Either:

1) We need some magic to:

  1. Block resizing events on text area
  2. Only scroll down when needed (this works awful) 2) Or I think we won't use TextArea component But then user won't be able to select and copy text This can be solved by introducing copy button, that will copy all text (but then user wont be able to copy partially)
InAnYan commented 1 month ago

Labels doesn't work too... It calculates height wrong (and I remember to call .layout before .setVvalue)

InAnYan commented 1 month ago

Okay, it works with labels (a little bit wrong for user messages, but..., nothing could be done)

InAnYan commented 1 month ago

No, I can't do this