Skip to content

Commit

Permalink
Removed obsolete testing code.
Browse files Browse the repository at this point in the history
  • Loading branch information
gbmhunter committed Nov 25, 2023
1 parent 8ea22af commit dcc6027
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Terminals/SingleTerminal/SingleTerminalView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,6 @@ export default observer((props: Props) => {
};
}, []);

// Use a fake height if testing
let heightDebug;
if (appStore.testing) {
heightDebug = 200;
} else {
heightDebug = terminal.terminalViewHeightPx;
}

return (
// This is the outer terminal div which sets the background colour
<div
Expand Down Expand Up @@ -232,7 +224,7 @@ export default observer((props: Props) => {
<FixedSizeList
ref={reactWindowRef}
className={styles.fixedSizeList}
height={heightDebug}
height={terminal.terminalViewHeightPx}
// Add a bit of padding to the height
itemSize={
appStore.settings.displaySettings.charSizePx.appliedValue + appStore.settings.displaySettings.verticalRowPadding.appliedValue
Expand Down

0 comments on commit dcc6027

Please sign in to comment.