add an init function to WVTreeFrame
fix reshape logic in WVCanvasFrame