Skip to content

Short lines in previously hidden terminal when terminal have position: fixed #466

@paulsmirnov

Description

@paulsmirnov

Expected behavior

I expect to be able to attach the terminal plugin to a div even if the div is currently hidden. When I show the div later ("on-demand" console) it should display text correctly.

Actual behavior

When I show the div later, the text in the terminal is split into lines, one character per line. When I enter new text it is being split too.

Steps to reproduce

See this code pen: https://codepen.io/paulsmirnov/pen/NozwLQ

Browser and OS

Windows 10 + Chrome/Firefox/Edge

Hints

  • After playing with CodePen for a while I think it works with jQuery 3.1.1 but fails to work with 3.3.1 (the latest).
  • Also, the jquery.terminal 1.2 works ok, 1.3-1.4 throws an exception, 1.5+ fails to display text correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugresolvedif issue is resolved, it will be open until merge with master

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions