GP-2148 changed Byteviewer to center cursor on screen when jumping to

offscreen location to be consistent with listing
This commit is contained in:
ghidragon 2025-03-03 11:57:42 -05:00
parent 3d7089d391
commit 49d9afdbfb

View file

@ -537,7 +537,7 @@ public class ByteViewerComponent extends FieldPanel implements FieldMouseListene
int row = location.getRow();
setCursorPosition(fieldIndex, fieldNum, row, column, EventTrigger.INTERNAL_ONLY);
if (panel.getCurrentComponent() == this) {
scrollToCursor();
goTo(fieldIndex, fieldNum, row, column, false, EventTrigger.INTERNAL_ONLY);
}
return fieldIndex.intValue();