Closed JorisVanEijden closed 4 months ago
This can be considered a bug. Changing the document should change the scroll offset and rerender the hex view.
Fix should be in c9bbf84336099732835c4185df4a3ea00715f860. 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.
Expected:
Actual:
After commit c9bbf84336099732835c4185df4a3ea00715f860 I cannot seem to reproduce this issue anymore in the demo app. Are you sure you pulled the latest code (note that this commit is not on nuget yet).
You can pull the nightly build from AppVeyor
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. Unfortunately my git view was set to "main" and I happened to be in a detached Head state. So I was indeed missing the commit :(
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 theseView: 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.