Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fixes angular-ui/bootstrap#4018 #4027

Closed
wants to merge 1 commit into from

Conversation

SteffanLong
Copy link
Contributor

No description provided.


if (totalPercentage > 100) {
bar.percent -= totalPercentage - 100;
} else if (totalPercentage < 100) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The else if should be removed - this is causing the tests to fail. We also should not assume that the bar should fill up the progress section.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, my mistake. I failed to realize the possible scenario of bars that do not reach the progress max. I'll remove that.

@wesleycho
Copy link
Contributor

Could you also write a test with three stacked bars, each with values that total 100% but round to greater than 100%?

@wesleycho
Copy link
Contributor

Linking #4018 for reference.

@SteffanLong
Copy link
Contributor Author

Sure thing.

@SteffanLong
Copy link
Contributor Author

I adjusted the code and added a test case.

@wesleycho wesleycho added this to the 0.13.2 (Performance) milestone Jul 28, 2015
@wesleycho
Copy link
Contributor

This looks good - thanks for the good work here

@wesleycho wesleycho closed this in 2e9177e Jul 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants