From ac71615399f0b00370780d361764bed6968c0944 Mon Sep 17 00:00:00 2001 From: mike Date: Sat, 5 Oct 2013 11:27:30 +0200 Subject: [PATCH 1/2] Trying to allow the stacked behavior of bootstap. Fixes 10 --- less/bootstrap-progressbar-2.x.x.less | 1 - 1 file changed, 1 deletion(-) diff --git a/less/bootstrap-progressbar-2.x.x.less b/less/bootstrap-progressbar-2.x.x.less index 04ec79d..004610d 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; } From bb47185a086a62c211fa6c0678754d3dd32c4f86 Mon Sep 17 00:00:00 2001 From: mike Date: Sat, 5 Oct 2013 11:27:30 +0200 Subject: [PATCH 2/2] Trying to allow the stacked behavior of bootstap. Fixes 10 --- bootstrap-progressbar.js | 8 +------- less/bootstrap-progressbar-2.x.x.less | 1 + 2 files changed, 2 insertions(+), 7 deletions(-) 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 004610d..773fe9a 100644 --- a/less/bootstrap-progressbar-2.x.x.less +++ b/less/bootstrap-progressbar-2.x.x.less @@ -45,6 +45,7 @@ .progress.right .bar { right: 0; + position: absolute; } .progress.right .progressbar-front-text {