-
Notifications
You must be signed in to change notification settings - Fork 7
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
Resetting scroll/caret position after changing document #5
Comments
This can be considered a bug. Changing the document should change the scroll offset and rerender the hex view. Fix should be in c9bbf84. If you could verify this fixes your issue that would be great. |
That looks like it could fix something, but not my issue. I'll try to explain how to reproduce it better:
For step 5 I want to see the first line of the new file. |
I'm sorry. I was on my fork of AvaloniaHex and I had pulled the changes. I had my git view open that showed that commit as the latest one. Then I tested. Now the issue is solved. Many thanks for the quick fix and the awesome control. |
Perfect, I will push a nuget update shortly then. Thanks for reporting the problem! |
More of a "need help" or "question" than an issue with the code.
Situation:
I want to scroll the view to the first byte of the document but seem to be unable to do so.
I have tried:
.HexView.ScrollOffset = new Vector(0.0, 0.0)
.Caret.GoToStartOfDocument()
and put these
View: https://github.com/JorisVanEijden/Spice86/blob/feature/structure-viewer/src/Spice86/Views/StructureView.axaml
ViewModel: https://github.com/JorisVanEijden/Spice86/blob/feature/structure-viewer/src/Spice86/ViewModels/StructureViewModel.cs
Any help or advice would be welcome.
The text was updated successfully, but these errors were encountered: