scrollToMatch(index) {
		const lineNumber = Math.floor(index / this.bytesPerRow);
		const lineHeight = 16; // Height of one row in pixels

		// Calculate new scroll position to ensure the matched line is visible
		const newScrollTop = Math.max(0, (lineNumber * lineHeight) - ((this.visibleRows / 2) * lineHeight));

		console.log(`scrollToMatch called with index: ${index}`);
		console.log(`lineNumber: ${lineNumber}`);
		console.log(`newScrollTop: ${newScrollTop}`);

		// Update the scrollTop property to trigger handleScroll
		this.hexeditContent.scrollTop = newScrollTop;
	}
Scrolls the editor to make the match at the specified index visible.

@param {number} index - The byte index of the match.