private void bringOffsetIntoView(int offset) {
		int rowLength = config.getRowLength().getValue();
		int offsetRow = offset / rowLength;
		int firstVisRow = flow.getFirstVisibleIndex();

		// Checking for one below the current low ensures if we show the current row as the 'first'
		// then there will be an additional line above it as a sort of buffer.
		if (offsetRow - 1 < firstVisRow) {
			flow.showAsFirst(Math.max(0, offsetRow));
		} else {
			// Similarly having a +2 check has the same effect but as a buffer below.
			// Something with virtualization makes an equivalent offset but reversed not work here, so +2 it is.
			int lastVisRow = flow.getLastVisibleIndex();
			if (offsetRow + 2 >= lastVisRow) {
				flow.showAsLast(Math.min(rowCount.intValue(), offsetRow + 2));
			}
		}
	}
Brings the data at the given offset into view.

@param offset
		Data offset.
recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/hex/HexEditor.java