tzfun / vue-web-terminal

A beautiful web-side command line window plugin (simulating a terminal).
https://tzfun.github.io/vue-web-terminal/
Apache License 2.0
234 stars 25 forks source link

Show Header false not working. #48

Closed akshaysinghtk14 closed 1 year ago

akshaysinghtk14 commented 1 year ago

Bug description I have given :show-header="false" in vue-web-terminal @2.1.10 but my whole terminal is hidden.

Steps to reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshot <Terminal name="my-terminal" :context="'--'" :title="''" :show-header = "false" :initLog = "initLog" @exec-cmd="onExecCmd"

Reproduce environment:

Detailed Description Add any other context about the problem here.

tzfun commented 1 year ago

In my case, version 2.1.10 is working normally, and it is also good in the demo, can you provide your complete code and screenshots?

246859 commented 1 year ago

This is due to the problem caused by the box positioning of the terminal. When you set the show header to false, you should set a fixed height for the terminal parent box, otherwise the box height will disappear naturally if it is 0