-
Notifications
You must be signed in to change notification settings - Fork 123
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
Disabling fullscreen not works #65
Comments
Yes, I have same problem. .spl-fullscreen {
display: none !important;
} |
This is happening because the Possibly related to #38 Here is the explanation in the code for that function: Lines 650 to 652 in 5160e79
Lines 660 to 663 in 5160e79
And if I understood it correctly, something like this should fix the problem (?): function detect_fullscreen(){
if ((screen.availHeight - window.innerHeight) <= 0) {
toggleDisplay(maximize, false);
}
} However, possibly a more complete solution would be to instead check the fullscreen control option in this function and only proceed if it's not set as hidden. In that case, perhaps something like this is more suitable: function detect_fullscreen(){
if (false !== parse_option("fullscreen", controls_default["fullscreen"])) {
toggleDisplay(maximize, (screen.availHeight - window.innerHeight) > 0);
}
} |
If i want hide "fullscreen" icon, eg. via "fullscreen" data attribute by setting it to "false" , i can't.
You can check this issue also in your demo https://nextapps-de.github.io/spotlight/ at the section "Choose Controls (Toolbar)": checkbox not has effect.
Thanks
The text was updated successfully, but these errors were encountered: