mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge pull request #1212 from VisualSJ/v1.2_sync
Synchronization code to the 1.2 branch
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user