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 #3279

Closed
schnti opened this issue Mar 10, 2015 · 1 comment
Closed

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

schnti opened this issue Mar 10, 2015 · 1 comment
Assignees

Comments

@schnti
Copy link

schnti commented Mar 10, 2015

Type: bug

Platform: iOS 8 webview

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";

1

@tlancina
Copy link
Contributor

Should be fixed with 1c7b288.

@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