Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewer produces error when properties enabled but axisButtons disabled #51

Open
Googolplexic opened this issue Jun 14, 2024 · 0 comments

Comments

@Googolplexic
Copy link

src/viewer.coffee:

  if view.opts.properties
    buttonDiv.innerHTML += ' Property:'
    view.properties = viewer.appendHTML(buttonDiv, 'select')
    view.data = viewer.appendHTML(buttonDiv, 'div', {
      style: 'width: 300; padding: 10px; overflow: auto; \
        border: 1px solid black; display: inline-block; white-space: nowrap;'})

Should add something along this line for when axisButtons isn't enabled, so buttonDiv isn't created

if (!view.opts.axisButtons) { buttonDiv = viewer.appendHTML(div, 'div')}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant