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

Globe dissappears during browser resize. #84

Closed
emxsys opened this issue Jan 31, 2018 · 3 comments
Closed

Globe dissappears during browser resize. #84

emxsys opened this issue Jan 31, 2018 · 3 comments
Labels

Comments

@emxsys
Copy link
Member

emxsys commented Jan 31, 2018

The globe window contents disappears when the left sidebar is collapsed and the browser width is decreased.

  • FireFox, Chrome and Safari.
@emxsys emxsys added the bug label Jan 31, 2018
@emxsys emxsys added this to the Explorer v0.2.0 milestone Jan 31, 2018
@emxsys
Copy link
Member Author

emxsys commented Jan 31, 2018

This appears to be a problem/bug with the Splitter.

@emxsys
Copy link
Member Author

emxsys commented Feb 4, 2018

See issue: nathancahill/split#109

@emxsys emxsys closed this as completed in 6cb72f1 Feb 4, 2018
@emxsys
Copy link
Member Author

emxsys commented Feb 4, 2018

Added the following code fragment sidestep the issue:

                $(window).resize(function () {
                    // Force re-calc of size percentages when collapsed.
                    // The collapsed window has a 'fixed' size (0), but the
                    // size percentages vary during the resize. We need to 
                    // re-calc the size percentages during resizing to a 
                    // smaller window, else the remaining split-pane's size 
                    // could be fractionally to big to fit into its container
                    // and cause the layout to fail.
                    if ($(horzSplitPanes[0]).width() < 5) {
                        sidebarSplitter.collapse(0)
                    }
                });

emxsys added a commit that referenced this issue Feb 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant