various fixes around rendering of pin values

This commit is contained in:
Peli de Halleux
2016-03-14 09:10:13 -07:00
parent d31c5360ed
commit 7f57eda606
3 changed files with 10 additions and 4 deletions

View File

@@ -228,6 +228,9 @@ namespace ks.rt.micro_bit {
else if (pin.mode & PinMode.Touch) {
v = pin.touched ? '0%' : '100%';
if (text) text.textContent = "";
} else {
v = '100%';
if(text) text.textContent = '';
}
if (v) Svg.setGradientValue(this.pinGradients[index], v);
}