I'm having this EXACT same issue. There are a number of hacks I've tried that work, but just like you, I don't want to have to remove class='container' if there's a better way. Did you ever find a solution?
On Monday, July 20, 2015 at 10:43:40 AM UTC-5, Kerry Randolph wrote: > > I have a bootstrap css styled project in which I'm having a really minor > problem with the styling of the Swagger UI. > The Swagger UI output is not centered. It is shifted to the right, off the > screen so that you have to scroll to the right a little to see it centered. > > The problem is that the HTML generated by swagger-ui.js has a div with a > "container" class: > > *swagger-ui.js line 369:* > buffer += "</div>\n<div *class='container'* id='resources_container'>... > > But *container* is a special class in Bootstrap framework, so it makes > the swagger ui view a little wonky. > > The problem is fixed if I just remove the container class from the DIV, > but I don't like hacking up the swagger-ui.js if I don't have to... > > Any thoughts or suggestions on this? > > Many thanks. > -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.