mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-2148 changed Byteviewer to center cursor on screen when jumping to
offscreen location to be consistent with listing
This commit is contained in:
@@ -537,7 +537,7 @@ public class ByteViewerComponent extends FieldPanel implements FieldMouseListene
|
|||||||
int row = location.getRow();
|
int row = location.getRow();
|
||||||
setCursorPosition(fieldIndex, fieldNum, row, column, EventTrigger.INTERNAL_ONLY);
|
setCursorPosition(fieldIndex, fieldNum, row, column, EventTrigger.INTERNAL_ONLY);
|
||||||
if (panel.getCurrentComponent() == this) {
|
if (panel.getCurrentComponent() == this) {
|
||||||
scrollToCursor();
|
goTo(fieldIndex, fieldNum, row, column, false, EventTrigger.INTERNAL_ONLY);
|
||||||
}
|
}
|
||||||
|
|
||||||
return fieldIndex.intValue();
|
return fieldIndex.intValue();
|
||||||
|
|||||||
Reference in New Issue
Block a user