diff --git a/bootstrap-progressbar.js b/bootstrap-progressbar.js index 50907cf..199a5d3 100644 --- a/bootstrap-progressbar.js +++ b/bootstrap-progressbar.js @@ -69,13 +69,7 @@ }); // normal resizing would brick the structure because width is in px } else { - parent_size = $parent.css('width'); - $front_text.css({width: parent_size}); - - $(window).resize(function() { - parent_size = $parent.css('width'); - $front_text.css({width: parent_size}); - }); // normal resizing would brick the structure because width is in px + $front_text.css({textAlign: 'center'}); } } diff --git a/less/bootstrap-progressbar-2.x.x.less b/less/bootstrap-progressbar-2.x.x.less index 04ec79d..773fe9a 100644 --- a/less/bootstrap-progressbar-2.x.x.less +++ b/less/bootstrap-progressbar-2.x.x.less @@ -19,7 +19,6 @@ } .progress .bar { - position: absolute; overflow: hidden; line-height: @baseLineHeight; } @@ -46,6 +45,7 @@ .progress.right .bar { right: 0; + position: absolute; } .progress.right .progressbar-front-text {