Skip to content

Conversation

@LucianBuzzo
Copy link
Contributor

Whilst using the 'fit' addon, if you run Terminal.fit() whilst the terminal is hidden (with display: none for example), then the terminal will become unusable.
The solution I'm proposing is to exit the Terminal.resize() function if either the x or y parameter is a NaN value.

@parisk
Copy link
Contributor

parisk commented Feb 5, 2017

Thanks @LucianBuzzo!

@vincentwoo
Copy link
Contributor

This change broke IE, which does not support Number.isNaN. For alternatives, please see http://stackoverflow.com/questions/26962341/number-isnan-doesnt-exists-in-ie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants