Coder Social home page Coder Social logo

Comments (5)

iphonic avatar iphonic commented on May 27, 2024 1

Update

I have added position css to both parent and child which seems to fix the problem but partially, see me code below

const Loader = () => {
  return (
    <header style={{height:'3px',marginTop:'13px',marginLeft:'60px',position:'relative'}}>
      <LoadingBar style={{ backgroundColor: '#4da1ff', height: '3px',position:'absolute', zIndex:9999, width:'100%'}} showFastActions updateTime={500} />
    </header>
  );
};

But it created another problem the progress bar doesn't complete 100%, see below how it looks

2017-06-15_16-31-41

I have found that the progress bar doesn't go up to transform to 1, see the element inspection below,

2017-06-16_11-23-41

Thanks.

from react-redux-loading-bar.

iphonic avatar iphonic commented on May 27, 2024

I fixed the issue by supplying maxProgress={100} as property, found that the default maxProgress value was set to 99, so the progress wasn't completing 1.

from react-redux-loading-bar.

mironov avatar mironov commented on May 27, 2024

@iphonic Glad it worked out for you. The default maxProgress is set to 99% to show that the long-running action is still in progress. Once action is completed, the loading bar will come to 100% and disappear.

from react-redux-loading-bar.

iphonic avatar iphonic commented on May 27, 2024

@mironov Should I consider that showLoading() only executes upto 99% while hideLoading() finishes the last 1%?

from react-redux-loading-bar.

mironov avatar mironov commented on May 27, 2024

@iphonic yes, exactly

from react-redux-loading-bar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.