fix(GUI): limit button progress and width to 100 (#1256)

We limit the progress button width by limiting the progress to a maximum
value of 100.

Change-Type: patch
Changelog-Entry: Prevent progress button percentage to exceed 100%.
This commit is contained in:
Benedict Aas 2017-04-05 17:00:59 +01:00 committed by Juan Cruz Viotti
parent e16234e3e8
commit 63901ccf77

View File

@ -3,5 +3,5 @@
'progress-button--striped': striped && striped != 'false'
}">
<span class="progress-button__content" ng-transclude></span>
<span class="progress-button__bar" ng-style="{ width: percentage + '%' }"></span>
<span class="progress-button__bar" ng-style="{ width: Math.min(100, percentage) + '%' }"></span>
</button>