1. 29 Mar, 2015 2 commits
  2. 25 Mar, 2015 1 commit
    • Adrien Jarthon's avatar
      Tooltip/popover: Fix auto placement to use viewport · 0e8e5222
      Adrien Jarthon authored
      Currently, auto placement is using the container dimensions (if provided) or the element's parent to determine where to open the tooltip:
      ```javascript
      var $container   = this.options.container ? $(this.options.container) : this.$element.parent()
      var containerDim = this.getPosition($container)
      ```
      This is quite broken in fact, because the parent element could be just a small div outside the element for example, leading in a totally random placement (placing the tooltip on top even if there's no room). And the container can also be outside of the viewport.
      
      This fix simply uses the viewport instead, that's the purpose of the viewport actually, to position the tooltip.
      So the auto placement should use it to find where there's more room.
      By default this is body, which is good.
      0e8e5222
  3. 24 Mar, 2015 5 commits
  4. 23 Mar, 2015 3 commits
  5. 21 Mar, 2015 6 commits
  6. 19 Mar, 2015 5 commits
  7. 18 Mar, 2015 1 commit
  8. 16 Mar, 2015 6 commits
  9. 15 Mar, 2015 6 commits
  10. 13 Mar, 2015 1 commit
  11. 10 Mar, 2015 4 commits