Layout not correct for plotlyjs backend

The following code plots two subplots side-by-side. Works fine if you are using the gr backend but does not when using the plotlyjs backend. The first subplot spreads across the whole figure while the second subplot is positioned correctly and consequently hides half of the first subplot.

using Plots
l = @layout [a b]
for backend in [gr, plotlyjs]
	backend()
	p1 = plot(rand(10,2),seriestype=[:bar :scatter],layout=l)
	gui(p1)
end

Attached is a screenshot of how the plotlyjs version looks.

plotlyjs_version_screenshot

However, if you use savefig and then look at the saved file, the plotlyjs version now looks correct. So it appears the problem is only in the visual display.
Any help with this? I’m using julia 1.10.5.

There seems to be an open issue on this.
The workaround being to plot in a browser window via the plotly() backend instead of an electron window with plotlyjs()

If one is willing to use a browser window that workaround is OK. As the issue you link to was opened in 2018 I have little faith anyone is going to fix the root problem. I figured out another (not elegant) workaround: Make an empty plot and a position in the layout at the start with very narrow width:

l = @layout [ a{0.001w} b c ]
p0 = plot()
p1 = plot(rand(10,1),seriestype=[:bar])
p2 = plot(rand(10,1),seriestype=[:scatter])
p3 = plot(p0,p1,p2,layout=l)
gui(p3)