Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Disble scrolling? #5

Open
cyb0man opened this issue Jan 22, 2017 · 1 comment
Open

Disble scrolling? #5

cyb0man opened this issue Jan 22, 2017 · 1 comment

Comments

@cyb0man
Copy link

cyb0man commented Jan 22, 2017

It would be nice if it was possible to disable scrolling on the webpage shown.

@cyb0man
Copy link
Author

cyb0man commented Jan 22, 2017

Scrolling in iFrame can now be set to;
auto/yes/no

Update on code;

            // Default module config.
            defaults: {
                            height:"300px",
                            width:"100%",
                            scrolling:"auto"
            },


    // Override dom generator.
    getDom: function() {
            var iframe = document.createElement("IFRAME");
            iframe.style = "border:0"
            iframe.width = this.config.width;
            iframe.height = this.config.height;
            iframe.scrolling = this.config.scrolling;
            iframe.src =  this.config.url;
            return iframe;
    }

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

1 participant