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

"remove" API method does not work as expected #57

Open
Erika31 opened this issue Dec 6, 2015 · 2 comments
Open

"remove" API method does not work as expected #57

Erika31 opened this issue Dec 6, 2015 · 2 comments

Comments

@Erika31
Copy link

Erika31 commented Dec 6, 2015

When calling "remove", the private method "removeScrollbarComponents" unwraps the element, instead of its initial content.

A solution could be :

      removeScrollbarComponents: function () {
        this.removeScrollbar("vertical");
        this.removeScrollbar("horizontal");
        if (this.overviewAdded)
          this.$overview.contents().unwrap();  // Here...
        if (this.viewPortAdded)
          this.$viewPort.contents().unwrap();  // ...and here
      },
@de-arnst
Copy link

I confirm the error and its solution.

@gcirone
Copy link

gcirone commented Aug 18, 2016

I think the solution of Jevedor is better #44

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

3 participants