-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Hide fullscreen button in Viewer when not available #666
Comments
I guess there's already an explicit method to check for FullScreen support Fullscreen.supportsFullscreen .So the task is effectively reduced down to checking for it and adjusting the timeline suitably. Is the issue you refer regarding Timeline's layout reported anywhere? I can just follow up there to continue with this |
I don't think there are serious issues there. The timeline, like most widgets, needs to be notified when its parent container changes size. Look at what its window resize handler is calling, you'll have to call that after adjusting its size. |
I was working with this issue, and eventually find out that 'fullscreen button' doesn't work in IE10. by the way, how can I verify if my patch correct? I mean, is there are any opportunity to check that button appearance in browser which really doesn't support fullscreen mode? Thanks in advance. |
@cupidon4uk 2.You assign undefined but check using if condition. Note that it will throw a reference error instead.The predefined function returns a boolean 3.You change the style to visibility : hidden .However this property only makes the element not being visible but still occupies it's space in viewport. You might want to check out on that. Ideal property to be changed should have been display:none It's a small patch so I've wrote the necessary of my own now instead of correcting the above. @emackey |
@khare-ashwini, I have noticed, that there are something wrong with your code, so, I updated my patch. |
@cupidon4uk |
@khare-ashwini That's how I understood it. If I'm wrong, please, somebody, correct me. |
@khare-ashwini |
Oh, sorry, setting up github, I made a real mess here. Sorry again. |
Since the dojo Cesium Viewer widget is going away, and the replacement is being worked on in the Viewer branch, I'm going to just close this. |
Currently, the Fullscreen button in CesiumViewerWidget is visible whether the browser/iframe supports full screen functionality or not. The widget should check for Fullscreen support during startup and hide the button if not supported. The trick here is that the layout of the
Timeline
needs to change so that it stretches to fill the remaining space. I believe there are some layout issues inTimeline
that need to be fixed in order to let that happen.The text was updated successfully, but these errors were encountered: