staticJSROOT.resize(divid, arg)

As first argument divid one should use same argument as for the drawing
As second argument, one could specify "true" value to force redrawing of
the element even after minimal resize of the element
Or one just supply object with exact sizes like { width:300, height:200, force:true };