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
The problem was that the terminal on init calculate size but it use fake terminal added to body
because of this it didn't pick up --size from different selectors like '.foo .terminal'
The problem was that --size was added to selector other then bare .terminal, :root or body. When terminal is initialized it use fake terminal to get the size of the character that was wrong because the fake terminal use .terminal added to body.
Issue summary
when tere is
--size
variable on terminal the calculation of cols is wrong (probably size of the character in calculation is wrong)Expected behavior
I expect figlet.js to resize properly when using --size: 1.1 in demo
Actual behavior
the text is cut off because term.cols() is too big.
Steps to reproduce
body .shell .terminal
selectorBrowser and OS
The text was updated successfully, but these errors were encountered: