SHOW_ALL not resizing when mobile address bar comes up

I have a game using SHOW_ALL for the scaling. It works fine if I don’t inject the canvas into a div but if I put the canvas in:

in landscape on mobile if the address bar comes up the game does not resize(it does resize if the div isn’t in the page). Any ideas how to get the canvas to resize correctly?

Maybe CSS. If the div doesn’t change height, the game won’t either.