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

Reuse the same loadie #3

Open
david90 opened this issue Mar 20, 2014 · 1 comment
Open

Reuse the same loadie #3

david90 opened this issue Mar 20, 2014 · 1 comment

Comments

@david90
Copy link

david90 commented Mar 20, 2014

After calling $("body").loadie(1.0), display is set to none,
At that moment , if we call $("body").loadie(0.3), the loadie is not shown

@jimbooslice
Copy link

Not sure if you figured it out, but I did have the same issue. I added

loadie.show();

before the it modifies the width of the element
In Line 26 in jquery.loadie.js

  Loadie.update = function(dom, percent) {
      var loadie = $('#loadie-' + dom.data('loadie-id'), dom);
      var parentWidth = dom.width();
      loadie.show(); //<-- this is where I added it
      loadie.css('width', Math.floor(percent * parentWidth) + "px");
  }

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

2 participants