minddust / bootstrap-progressbar

progressbar interactions for twitter bootstrap 2 & 3
www.minddust.com/project/bootstrap-progressbar
MIT License
577 stars 160 forks source link

{display_text: "center"} shows both "fill" and "center" setting #21

Closed fynncfchen closed 10 years ago

fynncfchen commented 11 years ago

When I initializing with setting { display_text: "center" }, it will looks like

------------------------------------------------
|      10%     |         10%                    |
------------------------------------------------
minddust commented 10 years ago

hard to say without any more information. the demo page is working. maybe a sideeffect of your other styling code. if it's not. please attach your code or use http://jsfiddle.net/ for a micro example of this issue.

centered text at the demo page:

http://www.minddust.com/bootstrap-progressbar/bootstrap-3.0.0-rc2.html#h-center

closed for now

xc8tlik commented 10 years ago

In case it helps anyone else, I had this problem using bootstrap-progressbar in conjunction with Bootstrap Modal. The solution was to call .progressbar() inside the shown.bs.modal event; in other words it was related to timing/initialisation.