Search code examples
twitter-bootstrappositionpopover

Bootstrap Popover showing at wrong place upon zoom in/out or resizing Browser window


When I re-size windows of any browser by zooming-in or zooming-out. Popover is not updating position and showing at wrong place.

How do I change the placement/position of Bootstrap Popover upon re-sizing / zooming the browser's window.


Solution

  • It seems to work fine in Bootstrap 2.2.1 (unless I am understanding your question wrong). Try the live demo at http://twitter.github.com/bootstrap/javascript.html#modals to see if this is what you are looking for. I use onresize event for the window to set the size of the complex modal and its innards correctly.