-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
width option doesn't work with bootstrap 2.2.2 #24
Comments
Another vote for this issue. |
dropped in fix from alexparvulescu. Please let me know if you run into any issues! |
This issue needs to be reopened. As of Bootstrap 2.3.0 (February 7, 2013), the Popover uses the CSS attribute max-width instead of width. Setting a 'max-width' in CSS results in browsers using that value as the upper width-limit regardless of the 'width'-attribute (e.g. 'width: 200px; max-width: 100px;' - The resulting width here is 100px). I was able to fix this by simply applying the supplied width-option to max-width as well as width (modified alexparvulescu's version)
Also, thanks for a great plugin! 👍 |
hi,
I'm trying to set 'width' and it doesn't seem to work as expected. I'm on bootstrap 2.2.2, I don't know about older versions.
Currently these options are set on the inner container 'popover-inner':
but the problem is bootstrap sets a fixed width of 236px on the parent div 'popover' [0]
I'm proposing changing the 'width' attribute directly on the parent div like the following:
fyi 'height' seems to work fine, but I'd apply the same fix just to have some consistency
also, you should really link to the github/issues page from the examples it helps a lot :)
forgot to say thanks for this awesome plugin! ;)
[0] https://github.com/twitter/bootstrap/blob/master/docs/assets/css/bootstrap.css#L5298
The text was updated successfully, but these errors were encountered: