Skip to content

Commit

Permalink
fix bug about orientation & safeArea ( CCView.js ) (#16714)
Browse files Browse the repository at this point in the history
Should force trigger resize event when the orientation changed.
  • Loading branch information
finscn authored Mar 25, 2024
1 parent 549905a commit caf35a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos2d/core/platform/CCView.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ cc.js.mixin(View.prototype, {

_orientationChange: function () {
cc.view._orientationChanging = true;
cc.view._resizeEvent();
cc.view._resizeEvent(true);
// HACK: show nav bar on iOS safari
// safari will enter fullscreen when rotate to landscape
// need to exit fullscreen when rotate back to portrait, scrollTo(0, 1) works.
Expand Down

0 comments on commit caf35a7

Please sign in to comment.