Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: content resize after ionic.Platform.fullScreen #3271

Closed
schnti opened this issue Mar 10, 2015 · 2 comments
Closed

bug: content resize after ionic.Platform.fullScreen #3271

schnti opened this issue Mar 10, 2015 · 2 comments

Comments

@schnti
Copy link

schnti commented Mar 10, 2015

The content isn't resizing after ionic.Platform.fullScreen is toggled....

            function orientation() {
                if (ionic.Platform.isIOS() && !ionic.Platform.isIPad()) {

                    if ($window.orientation == -90 || $window.orientation == 90) {
                        ionic.Platform.fullScreen(true, false);
                    }
                    else {
                        ionic.Platform.fullScreen(false, true);
                    }
                }
            }

            window.addEventListener('orientationchange', function () {
                orientation();
            }, false);

Fix:
change panes[i].style.height = panes[i].offsetHeight + "px";to panes[i].style.height = window.offsetHeight + "px";

ios simulator screen shot 10 mar 2015 15 03 41

@schnti
Copy link
Author

schnti commented Mar 10, 2015

#3279

@adamdbradley
Copy link
Contributor

Duplicate: #3279

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants