question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

use on scrolling console like output

See original GitHub issue

I am displaying console output to trace logs and would like to use to plugin to scroll to the bottom

However, it doesn’t scroll to the bottom. The class output-cmdhas a max-hight set to 300px so there are scrollbars.

    <div>
      <div class='console'>
        <div class='console-inner'>
          <div class='output-cmd' id="cont" v-chat-scroll>
            <pre>
                <code>
                    {{ logarray.join("\n") }}
                </code>
            </pre>
          </div>
        </div>
      </div>
    </div>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vesper8commented, Jan 8, 2019

I’m also using it for this same purpose and it’s working fine for me. Have you tried actually using a UL/LI combo ?

              <ul
                v-chat-scroll
                class="console"
              >
                <li
                  v-for="(message, key) in logItems"
                  :key="key"
                  :class="message.type"
                  v-html="message.message"
                />
              </ul>

Also make sure that when you are adding new items to the thing that is mapped to your v-for, that you use the .push() command

0reactions
theomessincommented, Jan 13, 2019

Closing this issue due to inactivity. Feel free to re-open it if this is still… an issue 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scrolling the Screen Buffer - Windows Console | Microsoft Learn
When SetConsoleWindowInfo is called to specify a new window rectangle, it scrolls the view of the console screen buffer by changing the position ......
Read more >
How to "scroll up" and view previous console output? [closed]
Shift + PageUp or Shift + PageDown keys.
Read more >
How do you scroll up/down on the console of a Linux VM
SHIFT + Page Up and SHIFT + Page Down . If it doesn't work try this and then it should: Go the terminal...
Read more >
Scrolling Up and Down in the Linux Terminal
In the Linux terminal, you can scroll up by page using the Shift + PageUp shortcut. And to scroll down in the terminal,...
Read more >
Handle Long Output Like A Pro - Robert Wohlfahrt
Every time you hold down the shift-key and press “Page-Up”, the terminal will scroll up one page. You can repeat this until the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found