Fixed issue with health bars clamping to 100

This commit is contained in:
Stefan Zermatten
2017-03-06 14:50:46 +02:00
parent eefb3895ad
commit a8960e26ec
4 changed files with 52 additions and 12 deletions

View File

@@ -1,13 +1,3 @@
s<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by paper as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<link rel="import" href="../../components/polymer/polymer.html">
<link rel="import" href="../../components/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html">
<link rel="import" href="../../components/iron-flex-layout/iron-flex-layout.html">
@@ -514,6 +504,11 @@ Custom property | Description | Default
this.value = this._clampValue(this.value - this.step);
},
resetOldValue: function(){
this.secondaryProgress = this.value;
this._setOldValue(this.value);
},
_updateKnob: function(value, min, max, snaps, step) {
this.setAttribute('aria-valuemin', min);
this.setAttribute('aria-valuemax', max);