The xterm terminal does not fit to the parent container on load because of the hidden prop used in the tab component for the terminal which initializes the parent component with a width and height of 0, therefore fitaddon does not initialize according to the bounds and only works when switching back and forth to the terminal.
The xterm terminal does not fit to the parent container on load because of the hidden prop used in the tab component for the terminal which initializes the parent component with a width and height of 0, therefore fitaddon does not initialize according to the bounds and only works when switching back and forth to the terminal.