After spending some time, I successfully overrode the function that controls the width of the progress bar element in the jQuery UI widget version 1.12.1 from September 14, 2016.
Initially, I needed the progress bar to completely fill a column in a table. However, the default behavior of the "ui.progressbar"
widget sets the width of the element to "100%", whereas I required it to be "calc(100% + 30px)".
I faced this issue and later found a solution which I am sharing here, hoping it will benefit someone else as it did for me.
Initial Situation: JQuery UI was setting the width of the first div to 102%
<td class="ui-progressbar ui-widget ui-widget-content ui-progressbar-indeterminate" id="divProgress-255" role="progressbar" aria-valuemin="0">
<div class="ui-progressbar-value ui-widget-header" style="width: 102%;">
<div class="ui-progressbar-overlay"></div>
</div>
</td>
jquery-ui.js (line 133467): The specific line in jQuery UI responsible for this behavior
this.valueDiv.toggle( this.indeterminate || value > this.min ).width( percentage.toFixed( 0 ) + "%" );
Representation of the progress bar below
https://i.stack.imgur.com/bX44u.png
Inquiry: How can I adjust the width set by the $ui.progressbar
widget to use "calc(percentage + increment)" instead of just "100%"?