Skip to content

Commit 48242d8

Browse files
Ahmed Abdel Razzakscottgonzalez
Ahmed Abdel Razzak
authored andcommitted
Widget Factory: Fix rendering negative progressbar value
Closes jquerygh-454
1 parent c994842 commit 48242d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

page/jquery-ui/widget-factory/how-to-use-the-widget-factory.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ $.widget( "custom.progressbar", {
118118
value: 0
119119
},
120120
_create: function() {
121+
this.options.value = this._constrain(this.options.value);
121122
this.element.addClass( "progressbar" );
122123
this.refresh();
123124
},
@@ -157,6 +158,7 @@ $.widget( "custom.progressbar", {
157158
value: 0
158159
},
159160
_create: function() {
161+
this.options.value = this._constrain(this.options.value);
160162
this.element.addClass( "progressbar" );
161163
this.refresh();
162164
},
@@ -257,6 +259,7 @@ $.widget( "custom.progressbar", {
257259
value: 0
258260
},
259261
_create: function() {
262+
this.options.value = this._constrain(this.options.value);
260263
this.element.addClass( "progressbar" );
261264
this.refresh();
262265
},

0 commit comments

Comments
 (0)