You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried looking into why this happens, but I don't think I've found the root cause.
A fix that I've found to work is to manually call resize! in display:
function Base.display(screen::Screen{T}, scene::Scene; connect=true) where T <:GtkWidgetif!Makie.is_displayed(screen, scene)
if!isnothing(screen.scene)
delete!(screen, screen.scene)
screen.scene =nothingend
GLMakie.display_scene!(screen, scene)
fig = Makie.current_figure()
if Makie.get_scene(fig) == scene
widget =glarea(screen)
resize!(scene, GLMakie.framebuffer_size(widget)) # call resize! hereif widget.figure != fig
widget.inspector =nothing
widget.figure = fig
endendelse@assert screen.scene === scene "internal error. Scene already displayed by screen but not as root scene"end
GLMakie.pollevents(screen, Makie.BackendTick)
return screen
end
I've also noticed that GLMakie.framebuffer_size never actually gets called by anything. Neither when pushing the Figure nor when resizeing the window. However, at some point the Scene size does get set correctly but I can't figure out where and how that happens.
Here's my MWE:
When I press the Button, I first have to resize the window in for the plot to render with the correct size.
The text was updated successfully, but these errors were encountered: