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.

query-editor loads as collapsed

See original GitHub issue

In my deployment, I’ve noticed 3 things that can cause the query-editor to load in a collapsed state (height: 0 no gutters, no line numbers, left values that are very large for many child DOM elements). It ends up looking like this: screen shot 2016-09-22 at 7 55 42 am

I’m current at 0.7.3, and doing any of the 3 causes this bug:

  • wrapping the GraphiQL component in a div
  • loading the css file at the component level (eg using react-helmet)
  • upgrading from 0.7.3 to 0.7.8

Has anyone else experienced this? Resizing the window does not help. Additionally calling cm.refresh() doesn’t help either. cm.setSize(null, 100), which sets the height to 100px, doesn’t increase the size of the parent div, so the text sits on top of the variable-editor text. Not sure what else to try. I don’t think this is a code mirror issue because the variable-editor loads perfectly fine. Hopefully whatever result comes out of #152 will also fix this.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
dpiktcommented, Jun 30, 2017

Alternatively, using inline styles:

function Explorer () {
  return (
    <div style={{ height: '100vh' }}>
      <GraphiQL fetcher={ fetcher } />
    </div>
  )
}
2reactions
therockstormcommented, Dec 28, 2016

For others with this issue, setting your styles to that of the example fixes the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Query editor: Collapse All should, well, collapse all
In Query Editor, when you use Collapse all option in a group, it will collapse all queries under this group, which will not...
Read more >
Manage queries (Power Query) - Microsoft Support
Expand or collapse groups​​ To expand or collapse all groups, at the top right of the Queries pane, select More Options … >...
Read more >
"collapse all' or "toggle outline" in SQL Server Management ...
Open your query and then go to Edit > Outlining > Toggle All Outlining. This will toggle (i.e. expand/collapse) all nodes in the...
Read more >
Table looks different in Query editor and Table View
Expand all | Collapse all ... 1) I load data into the query editor and then re-arrange my foreign keys to be shown...
Read more >
Power Query (M)agic Part 2: Organizing Your Queries
Under this so-called the “folder” grouping method, the grouped folders will always “expanded” instead of “collapsed” each time you re-open 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