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.activate!(resize_to=:parent) for Grid only works when growing #275

Open
cstjean opened this issue Dec 9, 2024 · 1 comment
Open

Comments

@cstjean
Copy link

cstjean commented Dec 9, 2024

using Bonito, Bonito.Observables
import Bonito.TailwindDashboard as D
using WGLMakie

WGLMakie.activate!(resize_to=:parent)

App() do
    fig = lines([1,2], [4,5])
    return Row(fig)
end

works fine for return fig, but return Row(fig) has the behaviour that it grows correctly when growing the browser window, but does not shrink when shrinking. On Julia 1.10, Windows/Edge, latest Bonito version.

Eg.

{4AEEAC40-9AAB-4149-97F0-7FFC8F3B8158}

then grow window and shrink yields:

{F70B1ABA-0F07-4845-8BAB-0B32F1180E9E}
@cstjean
Copy link
Author

cstjean commented Dec 9, 2024

Relatedly, while return fig works great on a small window, Row(fig) shows a figure that is slightly too large.
{6FCB67A1-780F-422C-9A6D-5501AFFB4F23}

Also of note that while playing with the above code, my computer's display went completely black 3 times, and I had to Ctrl-Alt-Delete to quit my user session. I guess this is Edge's fault / vulnerability, but still feels worth reporting...

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