Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #14561
Closed
Open
Issue created Sep 08, 2014 by Administrator@rootContributor

Tooltip/popover auto placement bug

Created by: wickstargazer

Hi,

The auto placement works great, however i found a bug where the auto placement wouldn't place my popover anywhere else except for the right.

This is how i have managed to fix it.

line 1183 was previously

var $parent = this.$element.parent();

which is changed to

var $parent = this.options.container ? $(this.options.container) : this.$element.parent();

Because it was always the element parent, the placement calculation

"pos.left  - actualWidth < parentLeft"

or whichever position was always returning "true" and pushing it to the right.

Now it is fixed!

Hope this has helped someone Regards, Wick

Assignee
Assign to
Time tracking