Merge pull request #1212 from VisualSJ/v1.2_sync

Synchronization code to the 1.2 branch
This commit is contained in:
Wang Nan
2016-10-19 10:45:10 +08:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -627,6 +627,8 @@ _ccsg.EditBox.KeyboardReturnType = KeyboardReturnType;
} else {
thisPointer.__fullscreen = false;
}
this.__autoResize = cc.view.__resizeWithBrowserSize;
cc.view.resizeWithBrowserSize(false);
scrollWindowUp(editBox);
@@ -641,6 +643,9 @@ _ccsg.EditBox.KeyboardReturnType = KeyboardReturnType;
if(thisPointer.__fullscreen) {
cc.view.enableAutoFullScreen(true);
}
if (this.__autoResize) {
cc.view.resizeWithBrowserSize(true);
}
window.scrollY = 0;
if (editBox._delegate && editBox._delegate.editBoxEditingDidEnded) {
editBox._delegate.editBoxEditingDidEnded(editBox);
+1 -1
View File
@@ -490,7 +490,7 @@ else {
* Indicate whether system is mobile system
* @property {Boolean} isMobile
*/
sys.isMobile = /mobile|android|mqqbrowser|micromessenger|miuibrowser/.test(ua);
sys.isMobile = /mobile|android|iphone|ipad/.test(ua);
/**
* Indicate the running platform