cc.ResolutionPolicy.NO_BORDER, getVisibleOrigin/Size(); in canvas web

cc.ResolutionPolicy.NO_BORDER, getVisibleOrigin/Size(); in canvas web
0.0 0

#1

Hello,

why getVisibleSize and getVisibleOrigin do not return the right values in canvas mode?

in CCDirectorCanvas.js:

_p.getVisibleSize = function () {
    //if (this._openGLView) {
    //return this._openGLView.getVisibleSize();
    //} else {
    return this.getWinSize();
    //}
};

_p.getVisibleOrigin = function () {
    //if (this._openGLView) {
    //return this._openGLView.getVisibleOrigin();
    //} else {
    return cc.p(0, 0);
    //}
};