Resize screen wrong when open keyboard #1386
Replies: 3 comments 1 reply
-
When the keyboard closes, if your application combines both portrait mode and landscape mode, I noticed that the line of code self.frame = CGRectMake is incorrect, as the calculations seem to be confusing the two modes. In cocos2d-x, I am temporarily handling this by not running the animation in the doAnimationWhenKeyboardMoveWithDuration function when the keyboard closes. I think we should take a closer look to fix the root of the issue. |
Beta Was this translation helpful? Give feedback.
-
if off doAnimationWhenKeyboardMoveWithDuration, |
Beta Was this translation helpful? Give feedback.
-
is this to do with the old update screen rotation in AppDelegate.cpp add this to your AppDelegate H and CPP
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i had this problem from cocos2dx 3.17, and same on axmol, (ios)

im override applicationScreenSizeChanged() in AppDelegate
and here is my code:
it works fine, but if i open the keyboard and rotate, there is an error
resize.mp4
Does anyone have any solution?
Beta Was this translation helpful? Give feedback.
All reactions