You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a grid layout with 8 terminals like this:
I use the fit addon to make it fit the container but it doesn't work for the height (the width work though).
import{Terminal}from'xterm';import{FitAddon}from'xterm-addon-fit';letxTermContainerEl: HTMLElement;letxTermInst: Terminal;xTermInst=newTerminal({fontSize: 11.5,cursorBlink: true,rows: 15,//Still doesn't work if I omit this line});xTermInst.loadAddon(fitAddon);xTermInst.open(xTermContainerEl);fitAddon.fit();
XTerminal
<divclass="ui segment !p-0 !m-0 !h-full"><divclass="ui top attached label flex flex-row"><spanclass="m-auto"></span><iclass="cog link icon"></i></div><divclass="content !h-full block"><divbind:this={xTermContainerEl}></div></div></div>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a grid layout with 8 terminals like this:
I use the
fit
addon to make it fit the container but it doesn't work for the height (the width work though).XTerminal
See image:
How do I make it auto resize based on my grid layout?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions