-
Notifications
You must be signed in to change notification settings - Fork 147
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
(scroll! area :to :top) not always working #179
Comments
Actually it seems that the scroll! function is not, in general, reliable since I've found that :to :bottom and :to [:line 50] are also pretty unreliable for me. |
It seems to work consistently for me on OSX. Try forcing the call onto the UI thread in case it's Swing threading weirdness: |
If anyone is interested, I stumbled upon a possible workaround (this worked for me twice). |
I was having this problem as well. In my case I was trying to do the (bind
my-atom
(property my-text-component :text)
(b-do [_] (scroll! my-text-component :to :top)) What I had to do was (bind
my-atom
(b-do [t]
(text! my-text-component t)
(scroll! my-text-component :to :top)) |
Hi.
I'm following along with the REPL tutorial using Clojure 1.6.0 and SeeSaw 1.4.5-STABLE.
Trying to use (scroll! area :to :top) works one or twice but mostly does nothing. There's no error, the function returns the 'area' JTextArea as expected, but the scroll to the top does not happen.
Can anyone else reproduce this?
Best,
Matt
The text was updated successfully, but these errors were encountered: