Correctly initialize 2d canvas when container has display none.
Call the fields rootWidth/Height.

Other minor tweaks.