求助:修改引擎源码更新至1.6.1之后出现问题。

我们在使用1.5.1 beta 4的时候修改引擎源码文件:
CCSGEditBox.js中的—— onFocusOnMobile的方法

proto._onFocusOnMobile = function (editBox) {
       /* if (cc.view._isRotated) {
            cc.container.style['-webkit-transform'] = 'rotate(0deg)';
            cc.container.style.transform = 'rotate(0deg)';
            cc.view._isRotated = false;
            var policy = cc.view.getResolutionPolicy();
            policy.apply(cc.view, cc.view.getDesignResolutionSize());
            cc.view._isRotated = true;
            //use window scrollTo to adjust the input area
            window.scrollTo(35, 35);
            this.__rotateScreen = true;
        } else {
            this.__rotateScreen = false;
        }*/
        adjustEditBoxPosition(editBox);
    };
  • 上述源码我将转屏代码注释了,在移动浏览器上1.5.1 beta4 点击输入框、能显示input元素

  • 在升级1.6.1之后,如上图修改,DOM中的、input元素显示不了。 很是诧异。

  • 将cc.game.container旋转为为0度之后,input元素能够显示,就是默认旋转90的时候,input元素显示不了。求助

顶一下。求助。

我这边也是旋转不见了 求助