cocos creator 2.0 ,如何在代码里面修改适配宽or高?

老哥,panda哥回我帖子了,不用这么麻烦。
用代码更改了适配模式后加一句: canvas.alignWithScreen(); 就好了
http://forum.cocos.com/t/2-0-fitheight-fitwidth/65294

确实。。。。

适配底层路径是什么啊