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

WGLMakie plot pane cut on JuliaHub #2358

Closed
SebastianM-C opened this issue Oct 24, 2022 · 4 comments
Closed

WGLMakie plot pane cut on JuliaHub #2358

SebastianM-C opened this issue Oct 24, 2022 · 4 comments

Comments

@SebastianM-C
Copy link
Contributor

I've tried using WGLMakie on JuliaHub with:

using JSServe
JSServe.configure_server!(listen_url="0.0.0.0", listen_port=9284, forwarded_port=80, external_url=ENV["JH_APP_URL"] * "proxy/9284")

using WGLMakie
scatter(rand(10), rand(10), rand(10))

and I'm getting the figure cut in the plot pane. Do you know how I can investigate this issue?
image

(v1.7) pkg> st -m WGLMakie JSServe
      Status `/mnt/data/.julia/environments/v1.7/Manifest.toml`
  [824d6782] JSServe v1.2.9
  [276b4fcb] WGLMakie v0.7.0
@SimonDanisch
Copy link
Member

Ah that's weird...I guess it somehow switches to displaying it in an iframe which doesn't resize properly...Not sure why that would happen.
I can try to take a look at the code and see if there's a code path that could cause that.
Meanwhile, is there an easy why for me to reproduce this on JuliaHub?

@SebastianM-C
Copy link
Contributor Author

@ViralBShah ^

@ViralBShah
Copy link
Contributor

Also cc @aviks

@pfitzseb
Copy link
Contributor

Looks like adding a height: 100vh to the jsserve div may be enough to fix this:
image

Not entirely sure why there's an WGLMakie needs to inject its own iframe though -- is that for isolation purposes?

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

4 participants