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.

Long code blocks cut off until focus in <Playground>

See original GitHub issue

Bug Report

When you put a component inside of a <Playground /> that extends past 11~ lines it cuts the bottom of the text off, but still presents a scrollbar. However, scrolling scrolls up the non-visible code instead of scrolling the code into view.

To Reproduce

  1. Include a <Playground /> element in an mdx file. The component(s) need to be longer than 11 lines (in my case) for it to be cut off.
  2. View the page in the browser and the code should be cut off.
  3. Click inside of the Playground and the code should then appear.

Expected behavior

Code is visible at all times without requiring the container to gain focus.

Environment

  • OS: Windows 10
  • Node/npm version: Node 10.11.0/npm 6.4.1

Additional context/Screenshots Below is the bug in action. I see the same result in both Chrome and Firefox.

playgroundbug

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
pedronauckcommented, Dec 17, 2018

Launched on v0.13.0

0reactions
iagobrunocommented, Dec 7, 2018

I am having the same problem and on the same line 11. I have not done anything other than what was shown in docz documentation and I am using the latest version of docz. online demo: https://httpiago.github.io/ios-theme-toolkit/#/components/Button

Read more comments on GitHub >

github_iconTop Results From Across the Web

Public Playground Safety Handbook
The recommendations in the Handbook are focused on playground-related injuries and mechanical mechanisms of injury; falls from playground equipment have ...
Read more >
Keyboard Shortcuts - Code::Blocks
Cut selected text, Ctrl + X ... This is a list of shortcuts provided by the Code::Blocks' editor component. ... Focus editor, CTRL...
Read more >
Xcode Swift code folding/collapse - ios - Stack Overflow
A new style for folded code in the editor that allows you to edit lines with folded code; Support for folding any block...
Read more >
Everyone Can Code - Swift Coding Club - Apple
Learn about while loops and how to use them to loop a block of code until a condition is true. Learn: Watch the...
Read more >
Creating and highlighting code blocks - GitHub Docs
Share samples of code with fenced code blocks and enabling syntax highlighting. ... You can create fenced code blocks by placing triple backticks...
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