Bustage fix for bug 442419: allow custom max for progressmeter, take 2

This commit is contained in:
Dave Townsend 2008-10-30 12:25:42 +00:00
parent f21a7f01e9
commit 02c0fa320f

View File

@ -46,7 +46,7 @@
</property>
<property name="max"
onget="return this.getAttribute('max') || '100';"
onset="this.setAttribute('max', isNaN(val) ? 100 : Math.max(val, 1);
onset="this.setAttribute('max', isNaN(val) ? 100 : Math.max(val, 1));
this.value = this.value;
return val;" />