diff --git a/src/svelte/src/components/DataDisplays/Header/DisplayHeader.svelte b/src/svelte/src/components/DataDisplays/Header/DisplayHeader.svelte index 14581036b..37ace1fa4 100644 --- a/src/svelte/src/components/DataDisplays/Header/DisplayHeader.svelte +++ b/src/svelte/src/components/DataDisplays/Header/DisplayHeader.svelte @@ -40,7 +40,7 @@ limitations under the License. import { byteDivWidthFromRadix } from '../../../utilities/display' const eventDispatcher = createEventDispatcher() - const bitNumText = '01234567' + let bitIndexStr = '01234567' let selectionOffsetText: string let offsetLine: string[] = [] @@ -50,6 +50,7 @@ limitations under the License. $displayRadix, $bytesPerRow ) + console.log(offsetLine) } $: selectionOffsetText = setSelectionOffsetInfo( @@ -65,15 +66,15 @@ limitations under the License. displayRadix: RadixValues, bytesPerRow: BytesPerRow ) { - let ret = [] + let ret: string[] = [] if (displayRadix != RADIX_OPTIONS.Binary) { for (let i = 0; i < bytesPerRow; i++) { ret.push(i.toString(addressRadix).padStart(2, '0')) } } else { - for (let i = 0; i < 8; i++) { - ret.push(i.toString(10)) + for (let i = 0; i < bytesPerRow; i++) { + ret.push(i.toString(addressRadix)) } } return ret @@ -134,7 +135,7 @@ limitations under the License. {#each offsetLine as offset}