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

isFullScreen() is delayed #42

Open
gubi opened this issue Dec 24, 2018 · 0 comments
Open

isFullScreen() is delayed #42

gubi opened this issue Dec 24, 2018 · 0 comments

Comments

@gubi
Copy link

gubi commented Dec 24, 2018

$('<a>', {"href": "javascript:;"}).append(
    $('<span>', {"class": "fas fa-expand"})
).click((e) => {
    $("#graph").fullscreen({
        toggleClass: "fullscreen"
    })
    console.log($.fullscreen.isFullScreen());
    console.log($("#graph").hasClass("fullscreen"));
})

When I click on the button the console reports this:

false
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant