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

Redrawing, losing focus, etc changes position in the alignment window #11

Closed
beowulfey opened this issue May 29, 2020 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@beowulfey
Copy link
Owner

This means that if you try and capture the output to image, it always shows the beginning. No good!
I have to save the position on the screen prior to redrawing it so that it scrolls back to the same spot on redraw.

I can try grabbing the character in the center or something, but that value will change with different sizes... might be tougher than it seems.

@beowulfey beowulfey added the bug Something isn't working label May 29, 2020
@beowulfey beowulfey self-assigned this May 29, 2020
@beowulfey
Copy link
Owner Author

I may be able to bypass the core issue that it doesn't save position on losing focus (thus making image output impossible) when I rebuild the app framelessly.

@beowulfey
Copy link
Owner Author

Ended up fixing this by storing the scroll bar value and reloading after redraw. It's not perfect for resizing, but it gets the job done, and fixes the point above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant